Ver código fonte

yeah, what he said

Scott Lahteine 9 anos atrás
pai
commit
fe3810f073
1 arquivos alterados com 2 adições e 2 exclusões
  1. 2
    2
      Marlin/ConfigurationStore.cpp

+ 2
- 2
Marlin/ConfigurationStore.cpp Ver arquivo

@@ -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
     }

Carregando…
Cancelar
Salvar