fix(gx12): custom function switch LED state may be incorrect (#6763)

This commit is contained in:
philmoz
2025-11-04 13:05:06 +10:00
committed by GitHub
parent 89be172cfb
commit 9cd44cf1cb
2 changed files with 2 additions and 0 deletions
+1
View File
@@ -718,6 +718,7 @@ static void menuModelCFSOne(event_t event)
fsLedRGB(switchGetCustomSwitchIdx(swIndex), 0);
#endif
} else if (config == SWITCH_TOGGLE) {
setFSLogicalState(swIndex, 0);
g_model.cfsSetStart(swIndex, FS_START_PREVIOUS); // Toggle switches do not have startup position
}
}
@@ -198,6 +198,7 @@ static void menuRadioCFSOne(event_t event)
fsLedRGB(switchGetCustomSwitchIdx(swIndex), 0);
#endif
} else if (config == SWITCH_TOGGLE) {
setFSLogicalState(swIndex, 0);
g_eeGeneral.switchSetStart(swIndex, FS_START_PREVIOUS); // Toggle switches do not have startup position
}
}