Fix module wakup after flash

This commit is contained in:
3djc
2019-04-10 12:23:21 +02:00
parent 6537f0b800
commit 516d50a6cf
@@ -354,12 +354,15 @@ void DeviceFirmwareUpdate::flashFile(const char * filename)
watchdogSuspend(2000);
RTOS_WAIT_MS(2000);
if (intPwr)
if (intPwr) {
INTERNAL_MODULE_ON();
if (extPwr)
setupPulses(INTERNAL_MODULE);
}
if (extPwr) {
EXTERNAL_MODULE_ON();
setupPulses(EXTERNAL_MODULE);
}
state = SPORT_IDLE;
resumePulses();
}