Commit 03f35e6
Wire: fix the behavior of the arduino::ZephyrI2C::peek()
Added a negative return value to peek() in case there's no data to read.
Signed-off-by: Jakub Zimnol <zimnol.jakub@gmail.com>1 parent 9e134ee commit 03f35e6
1 file changed
Lines changed: 4 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
98 | 98 | | |
99 | 99 | | |
100 | 100 | | |
101 | | - | |
102 | | - | |
103 | | - | |
104 | | - | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
105 | 105 | | |
106 | 106 | | |
107 | 107 | | |
| |||
0 commit comments