MCPcopy Create free account
hub / github.com/OpenEPaperLink/OpenEPaperLink / readInfoBlock

Method readInfoBlock

ESP32_AP-Flasher/src/flasher.cpp:368–378  ·  view source on GitHub ↗

get info from infoblock (eeprom flash, kinda)

Source from the content-addressed store, hash-verified

366
367// get info from infoblock (eeprom flash, kinda)
368bool flasher::readInfoBlock() {
369 if (!zbs->select_flash(1)) return false;
370 if (infoblock == nullptr) {
371 infoblock = (uint8_t *)malloc(1024);
372 if (infoblock == nullptr) return false;
373 }
374 for (uint16_t c = 0; c < 1024; c++) {
375 infoblock[c] = zbs->read_flash(c);
376 }
377 return true;
378}
379
380// write info to infoblock
381bool flasher::writeInfoBlock() {

Callers 6

doForcedAPFlashFunction · 0.45
doAPFlashFunction · 0.45
doAPUpdateFunction · 0.45
doTagFlashFunction · 0.45
autoFlashFunction · 0.45
webFlasherTaskFunction · 0.45

Calls 2

select_flashMethod · 0.45
read_flashMethod · 0.45

Tested by

no test coverage detected