Browse Source

use eeprom read correctly

Scott Lahteine 10 years ago
parent
commit
6137bbd484
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      Marlin/ConfigurationStore.cpp

+ 1
- 1
Marlin/ConfigurationStore.cpp View File

@@ -72,7 +72,7 @@ void _EEPROM_writeData(int &pos, uint8_t* value, uint8_t size) {
72 72
   uint8_t c;
73 73
   while(size--) {
74 74
     eeprom_write_byte((unsigned char*)pos, *value);
75
-    eeprom_read_byte((unsigned char*)pos, *c);
75
+    *c = eeprom_read_byte((unsigned char*)pos);
76 76
     if (*c != *value) {
77 77
       SERIAL_ECHO_START;
78 78
       SERIAL_ECHOLNPGM(MSG_ERR_EEPROM_WRITE);

Loading…
Cancel
Save