mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-02-02 05:58:30 -04:00
Copter: delay for 200ms instead of 50ms before reboot
This commit is contained in:
parent
1fbdf11eca
commit
8efc02fe0c
@ -1382,7 +1382,7 @@ void GCS_MAVLINK::handleMessage(mavlink_message_t* msg)
|
||||
if (is_equal(packet.param1,1.0f) || is_equal(packet.param1,3.0f)) {
|
||||
AP_Notify::flags.firmware_update = 1;
|
||||
copter.update_notify();
|
||||
hal.scheduler->delay(50);
|
||||
hal.scheduler->delay(200);
|
||||
// when packet.param1 == 3 we reboot to hold in bootloader
|
||||
hal.scheduler->reboot(is_equal(packet.param1,3.0f));
|
||||
result = MAV_RESULT_ACCEPTED;
|
||||
|
Loading…
Reference in New Issue
Block a user