Fixes for OTA on Horus
This commit is contained in:
@@ -559,6 +559,8 @@ inline void CLEAR_POPUP()
|
|||||||
warningInfoText = nullptr;
|
warningInfoText = nullptr;
|
||||||
popupMenuHandler = nullptr;
|
popupMenuHandler = nullptr;
|
||||||
popupMenuItemsCount = 0;
|
popupMenuItemsCount = 0;
|
||||||
|
// TODO ? popupFunc = nullptr;
|
||||||
|
pushEvent(EVT_REFRESH);
|
||||||
}
|
}
|
||||||
|
|
||||||
inline void POPUP_WAIT(const char * s)
|
inline void POPUP_WAIT(const char * s)
|
||||||
|
|||||||
@@ -97,6 +97,7 @@ void onUpdateConfirmation(const char * result)
|
|||||||
OtaUpdateInformation * destination = moduleState[reusableBuffer.sdManager.otaUpdateInformation.module].otaUpdateInformation;
|
OtaUpdateInformation * destination = moduleState[reusableBuffer.sdManager.otaUpdateInformation.module].otaUpdateInformation;
|
||||||
Pxx2OtaUpdate otaUpdate(reusableBuffer.sdManager.otaUpdateInformation.module, destination->candidateReceiversNames[destination->selectedReceiverIndex]);
|
Pxx2OtaUpdate otaUpdate(reusableBuffer.sdManager.otaUpdateInformation.module, destination->candidateReceiversNames[destination->selectedReceiverIndex]);
|
||||||
otaUpdate.flashFirmware(destination->filename);
|
otaUpdate.flashFirmware(destination->filename);
|
||||||
|
putEvent(EVT_REFRESH);
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
moduleState[reusableBuffer.sdManager.otaUpdateInformation.module].mode = MODULE_MODE_NORMAL;
|
moduleState[reusableBuffer.sdManager.otaUpdateInformation.module].mode = MODULE_MODE_NORMAL;
|
||||||
|
|||||||
Reference in New Issue
Block a user