Skip to content

Commit

Permalink
AP_Bootloader: fix return check for otg2 serial deadline
Browse files Browse the repository at this point in the history
  • Loading branch information
bugobliterator committed Jun 24, 2024
1 parent bb73154 commit 5bfce26
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Tools/AP_Bootloader/support.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -506,7 +506,7 @@ bool update_otg2_serial_forward()
chnWriteTimeout(&SDU2, data, n, TIME_IMMEDIATE);
}

return (AP_HAL::millis() > otg2_serial_deadline_ms);
return (AP_HAL::millis() < otg2_serial_deadline_ms);
}
#endif

Expand Down

0 comments on commit 5bfce26

Please sign in to comment.