Skip to content

Commit

Permalink
fix: Missing OTA option for newer Archer receivers (#4185)
Browse files Browse the repository at this point in the history
  • Loading branch information
3djc authored and pfeerick committed Oct 10, 2023
1 parent 5a99c19 commit 6dc2767
Showing 1 changed file with 4 additions and 15 deletions.
19 changes: 4 additions & 15 deletions radio/src/io/frsky_firmware_update.h
Original file line number Diff line number Diff line change
Expand Up @@ -79,21 +79,10 @@ enum FrskyFirmwareReceiverProductId {

inline bool isReceiverOTAEnabledFromModule(uint8_t moduleIdx, uint8_t productId)
{
switch (productId) {
case FIRMWARE_ID_RECEIVER_ARCHER_X:
return isModuleISRM(moduleIdx);

case FIRMWARE_ID_RECEIVER_R9_STAB:
case FIRMWARE_ID_RECEIVER_R9_MINI_OTA:
case FIRMWARE_ID_RECEIVER_R9_MM_OTA:
case FIRMWARE_ID_RECEIVER_R9_SLIMP_OTA:
case FIRMWARE_ID_RECEIVER_R9MX:
case FIRMWARE_ID_RECEIVER_R9SX:
return isModuleR9M(moduleIdx);

default:
return false;
}
if (productId >= 0x15 && (isModuleISRM(moduleIdx) || isModuleR9M(moduleIdx)))
return true;
else
return false;
}

PACK(struct FrSkyFirmwareInformation {
Expand Down

0 comments on commit 6dc2767

Please sign in to comment.