~ruther/qmk_firmware

12a2572295ae4daa69299941c0fa491bd6e04669 — mtei 6 years ago 5672dc8
Prevent wasteful writing to eeprom.
1 files changed, 2 insertions(+), 0 deletions(-)

M quantum/rgblight.c
M quantum/rgblight.c => quantum/rgblight.c +2 -0
@@ 128,7 128,9 @@ uint32_t eeconfig_read_rgblight(void) {
}
void eeconfig_update_rgblight(uint32_t val) {
  #ifdef __AVR__
  if (eeconfig_read_rgblight() != val) {
    eeprom_update_dword(EECONFIG_RGBLIGHT, val);
  }
  #endif
}
void eeconfig_update_rgblight_default(void) {