skeletyl: fix rgb timeout functions
This commit is contained in:
parent
86c40985ed
commit
a651a83173
1 changed files with 2 additions and 2 deletions
|
@ -174,13 +174,13 @@ void refresh_rgb() {
|
||||||
if (is_rgb_timeout) { // only do something if rgb has timed out
|
if (is_rgb_timeout) { // only do something if rgb has timed out
|
||||||
print("Activity detected, removing timeout\n");
|
print("Activity detected, removing timeout\n");
|
||||||
is_rgb_timeout = false;
|
is_rgb_timeout = false;
|
||||||
rgblight_wakeup();
|
rgb_matrix_enable_noeeprom();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void check_rgb_timeout() {
|
void check_rgb_timeout() {
|
||||||
if (!is_rgb_timeout && timer_elapsed(key_timer) > RGBLIGHT_TIMEOUT) {
|
if (!is_rgb_timeout && timer_elapsed(key_timer) > RGBLIGHT_TIMEOUT) {
|
||||||
rgblight_suspend();
|
rgb_matrix_disable_noeeprom();
|
||||||
is_rgb_timeout = true;
|
is_rgb_timeout = true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue