Browse Source

use eeprom read correctly

Scott Lahteine 9 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
   uint8_t c;
72
   uint8_t c;
73
   while(size--) {
73
   while(size--) {
74
     eeprom_write_byte((unsigned char*)pos, *value);
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
     if (*c != *value) {
76
     if (*c != *value) {
77
       SERIAL_ECHO_START;
77
       SERIAL_ECHO_START;
78
       SERIAL_ECHOLNPGM(MSG_ERR_EEPROM_WRITE);
78
       SERIAL_ECHOLNPGM(MSG_ERR_EEPROM_WRITE);

Loading…
Cancel
Save