| 401 | } |
| 402 | |
| 403 | bool 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 | |
| 415 | bool flasher::writeFlashFromPackOffset(fs::File *file, uint16_t length) { |
| 416 | if (!zbs->select_flash(0)) return false; |
no outgoing calls
no test coverage detected