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(); EXTERNAL_MODULE_OFF();
SPORT_UPDATE_POWER_OFF(); SPORT_UPDATE_POWER_OFF();
/* wait 1s off */ /* wait 2s off */
watchdogSuspend(1000); watchdogSuspend(2000);
RTOS_WAIT_MS(1000); RTOS_WAIT_MS(2000);
startup(); startup();
@@ -328,9 +328,9 @@ void DeviceFirmwareUpdate::flashFile(const char * filename)
waitState(SPORT_IDLE, 500); // Clear the fifo waitState(SPORT_IDLE, 500); // Clear the fifo
/* wait 1s off */ /* wait 2s off */
watchdogSuspend(1000); watchdogSuspend(2000);
RTOS_WAIT_MS(1000); RTOS_WAIT_MS(2000);
if (intPwr) if (intPwr)
INTERNAL_MODULE_ON(); INTERNAL_MODULE_ON();