From 6137bbd484a5a71efc451cc1ffedd3d7a812dbfa Mon Sep 17 00:00:00 2001 From: Scott Lahteine Date: Wed, 28 Jan 2015 22:10:31 -0800 Subject: [PATCH] use eeprom read correctly --- Marlin/ConfigurationStore.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Marlin/ConfigurationStore.cpp b/Marlin/ConfigurationStore.cpp index a72202e9a..99be2f10a 100644 --- a/Marlin/ConfigurationStore.cpp +++ b/Marlin/ConfigurationStore.cpp @@ -72,7 +72,7 @@ void _EEPROM_writeData(int &pos, uint8_t* value, uint8_t size) { uint8_t c; while(size--) { eeprom_write_byte((unsigned char*)pos, *value); - eeprom_read_byte((unsigned char*)pos, *c); + *c = eeprom_read_byte((unsigned char*)pos); if (*c != *value) { SERIAL_ECHO_START; SERIAL_ECHOLNPGM(MSG_ERR_EEPROM_WRITE);