chore: Remove "OFF" from protocol lists (#2186)
* chore: Remove "OFF" from protocol lists * Fix subType setting for X9D+2019 * fix: Chan start and count for ISRM, dup type set Channel start and count wasn't being updated for ISRM. Also remove duplicate modulke type setting, which was the cause of an earlier bug that was worked around on 128x64 * fix(colorlcd): Shorter ACCST opts string crash * chore: Formatting only Co-authored-by: Raphael Coeffic <raphael.coeffic@frafos.com>
This commit is contained in:
co-authored by
Raphael Coeffic
parent
62692dba6a
commit
a3d44d7b09
@@ -468,8 +468,7 @@ void ModuleSubTypeChoice::update()
|
||||
ModuleData* md = &g_model.moduleData[moduleIdx];
|
||||
|
||||
if (isModuleXJT(moduleIdx)) {
|
||||
|
||||
setMin(MODULE_SUBTYPE_PXX1_OFF);
|
||||
setMin(MODULE_SUBTYPE_PXX1_ACCST_D16);
|
||||
setMax(MODULE_SUBTYPE_PXX1_LAST);
|
||||
setValues(STR_XJT_ACCST_RF_PROTOCOLS);
|
||||
setGetValueHandler(GET_DEFAULT(md->subType));
|
||||
@@ -479,8 +478,7 @@ void ModuleSubTypeChoice::update()
|
||||
md->channelsCount = defaultModuleChannels_M8(moduleIdx);
|
||||
SET_DIRTY();
|
||||
});
|
||||
setAvailableHandler(
|
||||
[](int index) { return index != MODULE_SUBTYPE_PXX1_OFF; });
|
||||
setAvailableHandler(nullptr);
|
||||
}
|
||||
else if (isModuleDSM2(moduleIdx)) {
|
||||
setMin(DSM2_PROTO_LP45);
|
||||
|
||||
Reference in New Issue
Block a user