Browse Source

yeah, what he said

Scott Lahteine 9 years ago
parent
commit
fe3810f073
1 changed files with 2 additions and 2 deletions
  1. 2
    2
      Marlin/ConfigurationStore.cpp

+ 2
- 2
Marlin/ConfigurationStore.cpp View File

@@ -72,8 +72,8 @@ 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
-    *c = eeprom_read_byte((unsigned char*)pos);
76
-    if (*c != *value) {
75
+    c = eeprom_read_byte((unsigned char*)pos);
76
+    if (c != *value) {
77 77
       SERIAL_ECHO_START;
78 78
       SERIAL_ECHOLNPGM(MSG_ERR_EEPROM_WRITE);
79 79
     }

Loading…
Cancel
Save