diff --git a/radio/src/gui/common/stdlcd/radio_sdmanager.cpp b/radio/src/gui/common/stdlcd/radio_sdmanager.cpp index 9706e594c..0f0af18ac 100644 --- a/radio/src/gui/common/stdlcd/radio_sdmanager.cpp +++ b/radio/src/gui/common/stdlcd/radio_sdmanager.cpp @@ -176,8 +176,8 @@ void onSdManagerMenu(const char * result) } else if (result == STR_FLASH_RECEIVER_OTA) { getSelectionFullPath(lfn); - moduleState[EXTERNAL_MODULE].mode = MODULE_MODE_BIND; - // TODO + moduleState[EXTERNAL_MODULE].startBind(&reusableBuffer.sdManager.otaInformation); + } #endif #if defined(LUA) diff --git a/radio/src/opentx.h b/radio/src/opentx.h index c790babd2..2a07251fd 100644 --- a/radio/src/opentx.h +++ b/radio/src/opentx.h @@ -1178,12 +1178,7 @@ union ReusableBuffer uint16_t offset; uint16_t count; char originalName[SD_SCREEN_FILE_LENGTH+1]; - struct { - uint8_t step; - char candidateReceiversNames[PXX2_MAX_RECEIVERS_PER_MODULE][PXX2_LEN_RX_NAME + 1]; - uint8_t candidateReceiversCount; - uint8_t receiverIndex; - } otaUpdate; + BindInformation otaInformation; } sdManager; #endif