Add GHST and SBUS to the list of protos with fixed # channels

The end-channel is thus non-editable.
This commit is contained in:
Raphael Coeffic
2021-09-18 12:52:03 +02:00
parent 9b63f75e1d
commit b5da0e164c
+4
View File
@@ -414,6 +414,10 @@ inline int8_t maxModuleChannels(uint8_t moduleIdx)
inline int8_t minModuleChannels(uint8_t idx)
{
if (isModuleCrossfire(idx))
return CROSSFIRE_CHANNELS_COUNT;
else if (isModuleGhost(idx))
return GHOST_CHANNELS_COUNT;
else if (isModuleSBUS(idx))
return 16;
else
return 1;