Commit 8a88814
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 af172bb commit 8a88814
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