Browse Source

Prevent wasteful writing to eeprom.

pull/4993/head 0.6.259
mtei 5 years ago
committed by Drashna Jaelre
parent
commit
12a2572295
1 changed files with 2 additions and 0 deletions
  1. +2
    -0
      quantum/rgblight.c

+ 2
- 0
quantum/rgblight.c View File

@ -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) {


Loading…
Cancel
Save