Wait 2S OFF before / after flashing a module / device

This commit is contained in:
Bertrand Songis
2019-03-08 16:00:42 +01:00
parent a29fc4924e
commit 1937aaccb9
@@ -303,9 +303,9 @@ void DeviceFirmwareUpdate::flashFile(const char * filename)
EXTERNAL_MODULE_OFF();
SPORT_UPDATE_POWER_OFF();
/* wait 1s off */
watchdogSuspend(1000);
RTOS_WAIT_MS(1000);
/* wait 2s off */
watchdogSuspend(2000);
RTOS_WAIT_MS(2000);
startup();
@@ -328,9 +328,9 @@ void DeviceFirmwareUpdate::flashFile(const char * filename)
waitState(SPORT_IDLE, 500); // Clear the fifo
/* wait 1s off */
watchdogSuspend(1000);
RTOS_WAIT_MS(1000);
/* wait 2s off */
watchdogSuspend(2000);
RTOS_WAIT_MS(2000);
if (intPwr)
INTERNAL_MODULE_ON();