mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-05 07:28:29 -04:00
AP_Bootloader: fix return check for otg2 serial deadline
This commit is contained in:
parent
ca6e18e46c
commit
20c4a7c83f
@ -506,7 +506,7 @@ bool update_otg2_serial_forward()
|
|||||||
chnWriteTimeout(&SDU2, data, n, TIME_IMMEDIATE);
|
chnWriteTimeout(&SDU2, data, n, TIME_IMMEDIATE);
|
||||||
}
|
}
|
||||||
|
|
||||||
return (AP_HAL::millis() > otg2_serial_deadline_ms);
|
return (AP_HAL::millis() < otg2_serial_deadline_ms);
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user