From 985fba44d7377ea8d307f2a88487adcfeb14fdd7 Mon Sep 17 00:00:00 2001 From: treston Date: Tue, 13 Oct 2026 11:42:22 -0500 Subject: [PATCH] fix(rc_input): label RC_INPUT_PROTO 4 as SUMD and 5 as ST24 (#29136) The parameter labels and scan strings had SUMD and ST24 swapped relative to the values the driver uses, so selecting either protocol scanned the other and the status named the wrong one. Fix the labels rather than the values, because auto-detect has already stored 4 for every SUMD setup. Co-authored-by: Jacob Dahl --- src/drivers/rc_input/RCInput.hpp | 4 ++-- src/drivers/rc_input/module.yaml | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/drivers/rc_input/RCInput.hpp b/src/drivers/rc_input/RCInput.hpp index 67e0cf8ae83..d37c04e4b56 100644 --- a/src/drivers/rc_input/RCInput.hpp +++ b/src/drivers/rc_input/RCInput.hpp @@ -97,8 +97,8 @@ private: RC_SCAN_PPM = 1, RC_SCAN_SBUS = 2, RC_SCAN_DSM = 3, - RC_SCAN_ST24 = 5, RC_SCAN_SUMD = 4, + RC_SCAN_ST24 = 5, RC_SCAN_CRSF = 6, RC_SCAN_GHST = 7, } _rc_scan_state{RC_SCAN_SBUS}; @@ -108,8 +108,8 @@ private: "PPM", "SBUS", "DSM", - "ST24", "SUMD", + "ST24", "CRSF", "GHST" }; diff --git a/src/drivers/rc_input/module.yaml b/src/drivers/rc_input/module.yaml index bf15df09207..25966f52e46 100644 --- a/src/drivers/rc_input/module.yaml +++ b/src/drivers/rc_input/module.yaml @@ -15,8 +15,8 @@ parameters: 1: PPM 2: SBUS 3: DSM - 4: ST24 - 5: SUMD + 4: SUMD + 5: ST24 6: CRSF 7: GHST min: -1