Skip to content

Commit

Permalink
change stop bit time
Browse files Browse the repository at this point in the history
  • Loading branch information
AlkaMotors authored Oct 11, 2024
1 parent 0aeb7a1 commit 69be1b8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bootloader/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -555,7 +555,7 @@ static bool serialreadChar()
// now we need to wait for the start bit leading edge, which is low
bl_timer_reset();
while (gpio_read(input_pin)) {
if (bl_timer_us() > 20*BITTIME && messagereceived) {
if (bl_timer_us() > 5*BITTIME && messagereceived) {
// we've been waiting too long, don't allow for long gaps
// between bytes
#ifdef SERIAL_STATS
Expand Down

0 comments on commit 69be1b8

Please sign in to comment.