Wait 1s OFF at the end of flash
This commit is contained in:
@@ -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 2s off */
|
/* wait 1s off */
|
||||||
watchdogSuspend(2000);
|
watchdogSuspend(1000);
|
||||||
RTOS_WAIT_MS(2000);
|
RTOS_WAIT_MS(1000);
|
||||||
|
|
||||||
startup();
|
startup();
|
||||||
|
|
||||||
@@ -328,6 +328,10 @@ void DeviceFirmwareUpdate::flashFile(const char * filename)
|
|||||||
|
|
||||||
waitState(SPORT_IDLE, 500); // Clear the fifo
|
waitState(SPORT_IDLE, 500); // Clear the fifo
|
||||||
|
|
||||||
|
/* wait 1s off */
|
||||||
|
watchdogSuspend(1000);
|
||||||
|
RTOS_WAIT_MS(1000);
|
||||||
|
|
||||||
if (intPwr)
|
if (intPwr)
|
||||||
INTERNAL_MODULE_ON();
|
INTERNAL_MODULE_ON();
|
||||||
if (extPwr)
|
if (extPwr)
|
||||||
|
|||||||
Reference in New Issue
Block a user