Skip to content

Commit

Permalink
Use more strict bootloader magic check
Browse files Browse the repository at this point in the history
  • Loading branch information
kkonradpl committed Jul 28, 2024
1 parent ba865a4 commit ee51d03
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Platform/Stm32/UsbCdcStream.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,8 @@ tud_cdc_line_state_cb(uint8_t itf,
return;
}

if ((millis() - timer) > timeout)
if ((millis() - timer) > timeout ||
dtr ^ rts == 0)
{
state = 0;
return;
Expand Down

0 comments on commit ee51d03

Please sign in to comment.