Skip to content

Commit

Permalink
Update components/bm1397/serial.c
Browse files Browse the repository at this point in the history
Co-authored-by: Johnny <[email protected]>
  • Loading branch information
tommywatson and johnny9 authored Oct 20, 2023
1 parent 21ab604 commit 981ae9a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion components/bm1397/serial.c
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ void *SERIAL_rx_aa55(uint8_t *data,const int length) {
if (data[0] == 0xAA && data[1] == 0x55) {
len+=received;
} else {
for(int count=1; count < len+received; ++count) {
for(int count = 1; count < len + received; ++count) {
if(*(data+count) == 0xAA) {
// move to head and adjust read length
memmove(data, data+count, len+received-count);
Expand Down

0 comments on commit 981ae9a

Please sign in to comment.