[2.0.x] Use the new const functions of the persistentStore api (#11544)

This commit is contained in:
Nils Hasenbanck
2018-08-15 01:35:36 +02:00
committed by Scott Lahteine
parent 5573ef62c6
commit b37bfeffeb
3 changed files with 13 additions and 21 deletions

View File

@ -1169,8 +1169,6 @@
*/
void unified_bed_leveling::g29_eeprom_dump() {
uint8_t cccc;
int kkkk;
uint16_t crc = 0;
SERIAL_ECHO_START();
SERIAL_ECHOLNPGM("EEPROM Dump:");
@ -1180,8 +1178,7 @@
print_hex_word(i);
SERIAL_ECHOPGM(": ");
for (uint16_t j = 0; j < 16; j++) {
kkkk = i + j;
persistentStore.read_data(kkkk, &cccc, sizeof(uint8_t), &crc);
persistentStore.read_data(i + j, &cccc, sizeof(uint8_t));
print_hex_byte(cccc);
SERIAL_ECHO(' ');
}