Sfoglia il codice sorgente

yeah, what he said

Scott Lahteine 10 anni fa
parent
commit
fe3810f073
1 ha cambiato i file con 2 aggiunte e 2 eliminazioni
  1. 2
    2
      Marlin/ConfigurationStore.cpp

+ 2
- 2
Marlin/ConfigurationStore.cpp Vedi 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…
Annulla
Salva