feat(simu): add support for (RGB!!) customisable switches (#6129)
This commit is contained in:
@@ -28,9 +28,9 @@ void ledRed() {}
|
||||
void ledGreen() {}
|
||||
void ledBlue() {}
|
||||
void ledOff() {}
|
||||
void fsLedOn(uint8_t) {}
|
||||
void fsLedOff(uint8_t) {}
|
||||
void fsLedRGB(uint8_t, uint32_t) {}
|
||||
__attribute__((weak)) void fsLedOn(uint8_t) {}
|
||||
__attribute__((weak)) void fsLedOff(uint8_t) {}
|
||||
__attribute__((weak)) void fsLedRGB(uint8_t, uint32_t) {}
|
||||
bool fsLedState(uint8_t) { return false;}
|
||||
void rgbSetLedColor(unsigned char, unsigned char, unsigned char, unsigned char) {}
|
||||
void rgbLedColorApply() {}
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user