Fix multi firmware not working first time if internal module is on (#7302)
This commit is contained in:
@@ -520,7 +520,7 @@ bool multiFlashFirmware(uint8_t moduleIdx, const char * filename)
|
|||||||
|
|
||||||
pausePulses();
|
pausePulses();
|
||||||
|
|
||||||
#if defined(INTERNAL_MODULE_MULTI)
|
#if defined(HARDWARE_INTERNAL_MODULE)
|
||||||
uint8_t intPwr = IS_INTERNAL_MODULE_ON();
|
uint8_t intPwr = IS_INTERNAL_MODULE_ON();
|
||||||
INTERNAL_MODULE_OFF();
|
INTERNAL_MODULE_OFF();
|
||||||
#endif
|
#endif
|
||||||
@@ -534,7 +534,7 @@ bool multiFlashFirmware(uint8_t moduleIdx, const char * filename)
|
|||||||
|
|
||||||
/* wait 2s off */
|
/* wait 2s off */
|
||||||
watchdogSuspend(500 /*5s*/);
|
watchdogSuspend(500 /*5s*/);
|
||||||
RTOS_WAIT_MS(2000);
|
RTOS_WAIT_MS(3000);
|
||||||
|
|
||||||
const char * result = driver->flashFirmware(&file, getBasename(filename));
|
const char * result = driver->flashFirmware(&file, getBasename(filename));
|
||||||
f_close(&file);
|
f_close(&file);
|
||||||
@@ -563,7 +563,7 @@ bool multiFlashFirmware(uint8_t moduleIdx, const char * filename)
|
|||||||
// reset telemetry protocol
|
// reset telemetry protocol
|
||||||
telemetryInit(255);
|
telemetryInit(255);
|
||||||
|
|
||||||
#if defined(INTERNAL_MODULE_MULTI)
|
#if defined(HARDWARE_INTERNAL_MODULE)
|
||||||
if (intPwr) {
|
if (intPwr) {
|
||||||
INTERNAL_MODULE_ON();
|
INTERNAL_MODULE_ON();
|
||||||
setupPulsesInternalModule();
|
setupPulsesInternalModule();
|
||||||
|
|||||||
Reference in New Issue
Block a user