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

Method prepareInfoBlock

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

Source from the content-addressed store, hash-verified

401}
402
403bool flasher::prepareInfoBlock() {
404 if (infoblock == nullptr) return false;
405 for (uint8_t c = 7; c < 8; c--) {
406 infoblock[0x10 + (7 - c)] = mac[c];
407 }
408 infoblock[0x19] = tagtype;
409 for (uint8_t c = 0; c < 16; c++) {
410 infoblock[0x30 + c] = md5[c];
411 }
412 return true;
413}
414
415bool flasher::writeFlashFromPackOffset(fs::File *file, uint16_t length) {
416 if (!zbs->select_flash(0)) return false;

Callers 5

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

Calls

no outgoing calls

Tested by

no test coverage detected