From 20c4a7c83fe812afe832fb91317cd17e61837c65 Mon Sep 17 00:00:00 2001 From: bugobliterator Date: Mon, 24 Jun 2024 11:22:58 +1000 Subject: [PATCH] AP_Bootloader: fix return check for otg2 serial deadline --- Tools/AP_Bootloader/support.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Tools/AP_Bootloader/support.cpp b/Tools/AP_Bootloader/support.cpp index 1302db2d01..752deacd2d 100644 --- a/Tools/AP_Bootloader/support.cpp +++ b/Tools/AP_Bootloader/support.cpp @@ -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