Skip to content

Commit

Permalink
fix memset buf
Browse files Browse the repository at this point in the history
  • Loading branch information
WantClue committed Aug 13, 2024
1 parent 2653c8c commit 064b892
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 @@ -94,7 +94,7 @@ void SERIAL_debug_rx(void)
return;
}

memset(buf, 0, 1024);
memset(buf, 0, 100);

This comment has been minimized.

Copy link
@shufps

shufps Aug 13, 2024

Contributor

you could write: memset(buf, 0, sizeof(buf));

}

void SERIAL_clear_buffer(void)
Expand Down

0 comments on commit 064b892

Please sign in to comment.