- max chan for multi dsm is 12 (as oposed to dsm hack module : 6) (#6997)

- on multi change, set channelCount to max (was already done for non multi protocol change)
This commit is contained in:
3djc
2019-10-24 09:00:24 +02:00
committed by Bertrand Songis
parent c8160f5f9b
commit 039febefc7
+2 -1
View File
@@ -396,7 +396,7 @@ int ModulePanel::getMaxChannelCount()
return 6;
case PULSES_MULTIMODULE:
if (module.multi.rfProtocol == MODULE_SUBTYPE_MULTI_DSM2)
return 6;
return 12;
else
return 16;
break;
@@ -766,6 +766,7 @@ void ModulePanel::onMultiProtocolChanged(int index)
if (module.multi.customProto)
maxSubTypes=8;
module.subType = std::min(module.subType, maxSubTypes -1);
module.channelsCount = getMaxChannelCount();
update();
emit modified();
lock = false;