Use new custom switch framework.

This commit is contained in:
Richard Li
2025-01-24 19:00:12 +01:00
committed by Malte Langermann
parent f8e70c6a67
commit dfdbdf023c
3 changed files with 8 additions and 72 deletions
+4 -4
View File
@@ -56,12 +56,12 @@ __weak SwitchHwType boardSwitchGetType(SwitchCategory cat, uint8_t idx)
return _switch_offsets[cat][idx].type;
}
__weak uint8_t boardGetMaxSwitches() { return n_switches; }
__weak uint8_t boardGetMaxFctSwitches() { return n_fct_switches; }
uint8_t boardGetMaxSwitches() { return n_switches; }
uint8_t boardGetMaxFctSwitches() { return n_fct_switches; }
__weak swconfig_t boardSwitchGetDefaultConfig() { return _switch_default_config; }
swconfig_t boardSwitchGetDefaultConfig() { return _switch_default_config; }
__weak switch_display_pos_t switchGetDisplayPosition(uint8_t idx)
switch_display_pos_t switchGetDisplayPosition(uint8_t idx)
{
// TODO: find a solution for FLEX switches so they can be displayed on main view
if (idx >= DIM(_switch_display)) return {0, 0};