summaryrefslogtreecommitdiff
path: root/keyboard/hhkb
diff options
context:
space:
mode:
authorJack Humbert <jack.humb@gmail.com>2016-04-21 23:10:00 -0400
committerJack Humbert <jack.humb@gmail.com>2016-04-21 23:10:00 -0400
commitfa40e91b5649e4a7aa833f3ae203169386c02721 (patch)
tree97c07e85ab7acb939ff395e4ba12d950d805a8f6 /keyboard/hhkb
parent9828aba2a12f03fccbc1095bc8e4918ae58fa31b (diff)
parent620ac4b260fa663d12b11a0b15ac50379523c125 (diff)
downloadqmk_firmware-fa40e91b5649e4a7aa833f3ae203169386c02721.tar.gz
qmk_firmware-fa40e91b5649e4a7aa833f3ae203169386c02721.zip
Merge pull request #271 from eltang/qmk_firmware/eeprom_wear_fix
Update functions used to write to EEPROM
Diffstat (limited to 'keyboard/hhkb')
-rw-r--r--keyboard/hhkb/rn42/rn42_task.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/keyboard/hhkb/rn42/rn42_task.c b/keyboard/hhkb/rn42/rn42_task.c
index 5107fef483..84001b3f1a 100644
--- a/keyboard/hhkb/rn42/rn42_task.c
+++ b/keyboard/hhkb/rn42/rn42_task.c
@@ -219,7 +219,7 @@ static void store_link(uint8_t *eeaddr)
xprintf("%s(%d)\r\n", s, strlen(s));
if (strlen(s) == 12) {
for (int i = 0; i < 12; i++) {
- eeprom_write_byte(eeaddr+i, *(s+i));
+ eeprom_update_byte(eeaddr+i, *(s+i));
dprintf("%c ", *(s+i));
}
dprint("\r\n");