Wait 1s OFF at the end of flash

This commit is contained in:
Bertrand Songis
2019-03-05 15:49:01 +01:00
parent 57a0aeffbb
commit f0ebcb7d92
@@ -303,9 +303,9 @@ void DeviceFirmwareUpdate::flashFile(const char * filename)
EXTERNAL_MODULE_OFF();
SPORT_UPDATE_POWER_OFF();
/* wait 2s off */
watchdogSuspend(2000);
RTOS_WAIT_MS(2000);
/* wait 1s off */
watchdogSuspend(1000);
RTOS_WAIT_MS(1000);
startup();
@@ -328,6 +328,10 @@ void DeviceFirmwareUpdate::flashFile(const char * filename)
waitState(SPORT_IDLE, 500); // Clear the fifo
/* wait 1s off */
watchdogSuspend(1000);
RTOS_WAIT_MS(1000);
if (intPwr)
INTERNAL_MODULE_ON();
if (extPwr)