From 91b37e3c7ade54e80b952fe7186bd212691948bc Mon Sep 17 00:00:00 2001 From: calebmartin2 Date: Wed, 18 Jun 2025 00:39:12 -0500 Subject: [PATCH] fix: avoid unnecessary EEPROM writes on RGB animation --- keyboards/cheapino/cheapino.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/keyboards/cheapino/cheapino.c b/keyboards/cheapino/cheapino.c index cfc4592bf4e1..f8399577910a 100644 --- a/keyboards/cheapino/cheapino.c +++ b/keyboards/cheapino/cheapino.c @@ -16,11 +16,11 @@ uint8_t _value; // stop us from using the keyboard. // https://docs.qmk.fm/#/custom_quantum_functions?id=deferred-executor-registration uint32_t flash_led(uint32_t next_trigger_time, void *cb_arg) { - rgblight_sethsv(_hue_countdown * 5, 230, 70); + rgblight_sethsv_noeeprom(_hue_countdown * 5, 230, 70); _hue_countdown--; if (_hue_countdown == 0) { // Finished, reset to user chosen led color - rgblight_sethsv(_hue, _saturation, _value); + rgblight_sethsv_noeeprom(_hue, _saturation, _value); return 0; } else { return 50; @@ -69,7 +69,7 @@ layer_state_t layer_state_set_user(layer_state_t state) { uint8_t sat = rgblight_get_sat(); uint8_t val = rgblight_get_val(); uint8_t hue = get_hue(get_highest_layer(state)); - rgblight_sethsv(hue, sat, val); + rgblight_sethsv_noeeprom(hue, sat, val); return state; } */