Add GHST and SBUS to the list of protos with fixed # channels
The end-channel is thus non-editable.
This commit is contained in:
@@ -414,6 +414,10 @@ inline int8_t maxModuleChannels(uint8_t moduleIdx)
|
|||||||
inline int8_t minModuleChannels(uint8_t idx)
|
inline int8_t minModuleChannels(uint8_t idx)
|
||||||
{
|
{
|
||||||
if (isModuleCrossfire(idx))
|
if (isModuleCrossfire(idx))
|
||||||
|
return CROSSFIRE_CHANNELS_COUNT;
|
||||||
|
else if (isModuleGhost(idx))
|
||||||
|
return GHOST_CHANNELS_COUNT;
|
||||||
|
else if (isModuleSBUS(idx))
|
||||||
return 16;
|
return 16;
|
||||||
else
|
else
|
||||||
return 1;
|
return 1;
|
||||||
|
|||||||
Reference in New Issue
Block a user