Fix state machine bug in serial input parser

This commit is contained in:
XANTRONIX Development 2016-06-02 22:55:13 -05:00
parent 445c52cdf4
commit a43cb02ec9

View file

@ -243,9 +243,10 @@ int main() {
default: {
if (b < header.size) {
b++;
body[b++];
} else if (b == header.size) {
sum = c;
b++;
} else if (b == header.size + 1) {
sum |= c << 8;