1
0
Fork 0
mirror of https://github.com/opentx/opentx.git synced 2025-07-25 17:25:13 +03:00

Cosmetics

This commit is contained in:
Bertrand Songis 2019-04-24 17:41:03 +02:00
parent ae0781f6d7
commit 75c5cb1c96

View file

@ -95,7 +95,7 @@ void onUpdateConfirmation(const char * result)
} }
} }
void onBindStateChanged() void onUpdateStateChanged()
{ {
if (reusableBuffer.sdManager.otaInformation.step == BIND_INFO_REQUEST) { if (reusableBuffer.sdManager.otaInformation.step == BIND_INFO_REQUEST) {
POPUP_CONFIRMATION(PXX2receiversModels[reusableBuffer.sdManager.otaInformation.receiverInformation.modelID], onUpdateConfirmation); POPUP_CONFIRMATION(PXX2receiversModels[reusableBuffer.sdManager.otaInformation.receiverInformation.modelID], onUpdateConfirmation);
@ -198,7 +198,7 @@ void onSdManagerMenu(const char * result)
} }
else if (result == STR_FLASH_RECEIVER_OTA) { else if (result == STR_FLASH_RECEIVER_OTA) {
getSelectionFullPath(lfn); getSelectionFullPath(lfn);
moduleState[EXTERNAL_MODULE].startBind(&reusableBuffer.sdManager.otaInformation, onBindStateChanged); moduleState[EXTERNAL_MODULE].startBind(&reusableBuffer.sdManager.otaInformation, onUpdateStateChanged);
} }
#endif #endif
#if defined(LUA) #if defined(LUA)
@ -216,7 +216,7 @@ void onUpdateReceiverSelection(const char * result)
reusableBuffer.sdManager.otaInformation.step = BIND_INFO_REQUEST; reusableBuffer.sdManager.otaInformation.step = BIND_INFO_REQUEST;
#if defined(SIMU) #if defined(SIMU)
reusableBuffer.sdManager.otaInformation.receiverInformation.modelID = 0x01; reusableBuffer.sdManager.otaInformation.receiverInformation.modelID = 0x01;
onBindStateChanged(); onUpdateStateChanged();
#endif #endif
} }
else { else {