qmk

Unnamed repository; edit this file 'description' to name the repository.
git clone git://git.z3bra.org/qmk.git
Log | Files | Refs | Submodules | LICENSE

commit 12a2572295ae4daa69299941c0fa491bd6e04669
parent 5672dc8030e99541e1d71c749916249fb4b2504b
Author: mtei <2170248+mtei@users.noreply.github.com>
Date:   Tue, 29 Jan 2019 03:23:46 +0900

Prevent wasteful writing to eeprom.

Diffstat:
quantum/rgblight.c | 2++
1 file changed, 2 insertions(+), 0 deletions(-)

diff --git a/quantum/rgblight.c b/quantum/rgblight.c @@ -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) {