Skip to content

Commit

Permalink
fix(cpn): add missing module types to module size lists (#3839)
Browse files Browse the repository at this point in the history
* fix(cpn): add missing module types module size lists, X9D+2019 module size

* fix: X9D+2019 is STD size

---------

Co-authored-by: Peter Feerick <[email protected]>
  • Loading branch information
Neil Horne and pfeerick authored Jul 23, 2023
1 parent 2ab21da commit d955685
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
1 change: 0 additions & 1 deletion companion/src/firmwares/boards.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1012,7 +1012,6 @@ int Boards::getDefaultExternalModuleSize(Board::Type board)
}

if (IS_TARANIS_X9LITE(board) ||
IS_TARANIS_X9DP_2019(board) ||
IS_RADIOMASTER_ZORRO(board) ||
IS_JUMPER_TLITE(board) ||
IS_JUMPER_TPRO(board) ||
Expand Down
11 changes: 11 additions & 0 deletions companion/src/firmwares/moduledata.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -545,12 +545,17 @@ bool ModuleData::isProtocolAvailable(int moduleidx, unsigned int protocol, Gener
case MODULE_TYPE_R9M_PXX1:
case MODULE_TYPE_R9M_PXX2:
case MODULE_TYPE_DSM2:
case MODULE_TYPE_CROSSFIRE:
case MODULE_TYPE_MULTIMODULE:
case MODULE_TYPE_GHOST:
case MODULE_TYPE_FLYSKY:
case MODULE_TYPE_LEMON_DSMP:
case MODULE_TYPE_R9M_LITE_PXX1:
case MODULE_TYPE_R9M_LITE_PXX2:
case MODULE_TYPE_R9M_LITE_PRO_PXX2:
case MODULE_TYPE_XJT_LITE_PXX2:
case MODULE_TYPE_PPM:
case MODULE_TYPE_SBUS:
return true;
default:
return false;
Expand All @@ -562,6 +567,9 @@ bool ModuleData::isProtocolAvailable(int moduleidx, unsigned int protocol, Gener
case MODULE_TYPE_R9M_PXX1:
case MODULE_TYPE_R9M_PXX2:
case MODULE_TYPE_DSM2:
case MODULE_TYPE_CROSSFIRE:
case MODULE_TYPE_MULTIMODULE:
case MODULE_TYPE_GHOST:
case MODULE_TYPE_FLYSKY:
case MODULE_TYPE_LEMON_DSMP:
return true;
Expand All @@ -574,6 +582,9 @@ bool ModuleData::isProtocolAvailable(int moduleidx, unsigned int protocol, Gener
case MODULE_TYPE_R9M_LITE_PXX2:
case MODULE_TYPE_R9M_LITE_PRO_PXX2:
case MODULE_TYPE_XJT_LITE_PXX2:
case MODULE_TYPE_CROSSFIRE:
case MODULE_TYPE_MULTIMODULE:
case MODULE_TYPE_GHOST:
return true;
default:
return false;
Expand Down

0 comments on commit d955685

Please sign in to comment.