XJT2 channel count can only be 8, 16 or 24

This commit is contained in:
3djc
2019-02-22 10:31:54 +01:00
parent a90b1c43de
commit 16e54f27e0
4 changed files with 19 additions and 8 deletions
+10
View File
@@ -515,6 +515,16 @@ bool isR9MMFlex(int module)
return g_model.moduleData[module].r9m.region == MODULE_R9M_REGION_FLEX;
}
bool isInternalModuleChannelCountAvailable(int channels)
{
if (g_model.moduleData[INTERNAL_MODULE].type == MODULE_TYPE_XJT2) {
if ( channels % 8 != 0)
return false;
}
return true;
}
bool isInternalModuleAvailable(int module)
{
if (module == MODULE_TYPE_NONE)