Commit 919c265
committed
I2C transport: Fix check for Byte Count field and packet length
The complete packet includes destination address,
command code, byte count and source address.
The check previously accounted only for the source adddress,
while the checked packet includes the whole header at that point.
Signed-off-by: Marvin Gudel <marvin.gudel@9elements.com>1 parent aac576f commit 919c265
1 file changed
Lines changed: 4 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
106 | 106 | | |
107 | 107 | | |
108 | 108 | | |
109 | | - | |
110 | | - | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
111 | 113 | | |
112 | 114 | | |
113 | 115 | | |
| |||
0 commit comments