skeletyl: fix rgb timeout functions

This commit is contained in:
Michael Grote 2024-03-20 18:23:52 +01:00
parent 86c40985ed
commit a651a83173

View file

@ -174,13 +174,13 @@ void refresh_rgb() {
if (is_rgb_timeout) { // only do something if rgb has timed out
print("Activity detected, removing timeout\n");
is_rgb_timeout = false;
rgblight_wakeup();
rgb_matrix_enable_noeeprom();
}
}
void check_rgb_timeout() {
if (!is_rgb_timeout && timer_elapsed(key_timer) > RGBLIGHT_TIMEOUT) {
rgblight_suspend();
rgb_matrix_disable_noeeprom();
is_rgb_timeout = true;
}
}