OVVE / software-controller

Software for the Arduino Mega
Other
2 stars 7 forks source link

serial: fix for case where message length is zero #64

Closed mrrosen closed 4 years ago

mrrosen commented 4 years ago

In the case where message length is zero, skip over reading out the data field from the packet. In the current design, this should only happen if the packet is corrupted but a zero length package is possible from the specification.

mrrosen commented 4 years ago

Changed my mind, 0 length messages are considered corrupt now

mrrosen commented 4 years ago

Lakshman tested, fixes the bug he was seeing