fix(color): Pre-flight check page does not always update switch state (#4342)

This commit is contained in:
philmoz
2023-11-20 13:41:06 +10:00
committed by GitHub
parent ca0d618f6d
commit af43536072
+1 -2
View File
@@ -280,8 +280,7 @@ void SwitchWarnMatrix::onPress(uint8_t btn_id)
bfSet(g_model.switchWarningState, newstate, 3 * sw, 3);
SET_DIRTY();
// TODO: save state in object
setTextAndState(sw);
setTextAndState(btn_id);
}
bool SwitchWarnMatrix::isActive(uint8_t btn_id)