From b5da0e164ce580a119b6285cd86ff2b12aa8d13f Mon Sep 17 00:00:00 2001 From: Raphael Coeffic Date: Sat, 18 Sep 2021 12:52:03 +0200 Subject: [PATCH] Add GHST and SBUS to the list of protos with fixed # channels The end-channel is thus non-editable. --- radio/src/pulses/modules_helpers.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/radio/src/pulses/modules_helpers.h b/radio/src/pulses/modules_helpers.h index 8d2bc10f5..4ad0fb3bf 100644 --- a/radio/src/pulses/modules_helpers.h +++ b/radio/src/pulses/modules_helpers.h @@ -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;