Skip to content

Commit

Permalink
fix uart_parse state machine
Browse files Browse the repository at this point in the history
  • Loading branch information
ligenxxxx committed Jan 19, 2024
1 parent 237436b commit 0244e01
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/driver/dm5680.c
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,8 @@ void uart_parse(uint8_t sel, uint8_t *state, uint8_t *len, uint8_t *payload, uin
case 1:
if (buf[*rptr] == 0x33)
*state = 2;
else
*state = 0;
break;

case 2:
Expand Down

0 comments on commit 0244e01

Please sign in to comment.