feat(simu): add support for (RGB!!) customisable switches (#6129)

This commit is contained in:
Malte Langermann
2025-04-24 09:30:30 +10:00
committed by GitHub
parent e98d679317
commit 2a21636e70
3 changed files with 59 additions and 6 deletions
+2 -2
View File
@@ -66,8 +66,8 @@ SwitchHwPos boardSwitchGetPosition(SwitchCategory cat, uint8_t idx)
idx = get_switch_index(cat, idx);
#if defined(FUNCTION_SWITCHES)
if (IS_SWITCH_FS(idx + n_switches)) {
if (bfSingleBitGet(functionSwitchFunctionState, idx))
if (IS_SWITCH_FS(idx)) {
if (bfSingleBitGet(functionSwitchFunctionState, idx - n_switches))
return SWITCH_HW_DOWN;
}
#endif