Commit 78810e4
authored
Minimum length increased to avoid reading uninitialised data.
Problems encountered when the getValues packet was reflected back down the serial port and was read as a valid value results packet. The easy solution is to ensure that the values packet is at least 55 bytes long as this is the length of all the data it should contain.1 parent 1ca18c5 commit 78810e4
1 file changed
+2
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
190 | 190 | | |
191 | 191 | | |
192 | 192 | | |
193 | | - | |
194 | | - | |
| 193 | + | |
| 194 | + | |
195 | 195 | | |
196 | 196 | | |
197 | 197 | | |
| |||
0 commit comments