mirror of
https://github.com/MarlinFirmware/Marlin.git
synced 2024-11-24 04:29:34 +00:00
use eeprom read correctly
This commit is contained in:
parent
9bc9051405
commit
6137bbd484
@ -72,7 +72,7 @@ void _EEPROM_writeData(int &pos, uint8_t* value, uint8_t size) {
|
||||
uint8_t c;
|
||||
while(size--) {
|
||||
eeprom_write_byte((unsigned char*)pos, *value);
|
||||
eeprom_read_byte((unsigned char*)pos, *c);
|
||||
*c = eeprom_read_byte((unsigned char*)pos);
|
||||
if (*c != *value) {
|
||||
SERIAL_ECHO_START;
|
||||
SERIAL_ECHOLNPGM(MSG_ERR_EEPROM_WRITE);
|
||||
|
Loading…
Reference in New Issue
Block a user