OLD/MIX convert to NG: Phase C9

This commit is contained in:
iceman1001 committed 2026-08-29 15:18:54 +02:00
1 parent 721641428c
commit 72ff6a5b80
9 files changed
+123 -24

No files matched your search

+5 -1
View File
@@ -645,7 +645,11 @@ static int CmdFlashMemWipe(const char *Cmd) {
}
clearCommandBuffer();
SendCommandMIX(CMD_FLASHMEM_WIPE, page, initialwipe, 0, NULL, 0);
flashmem_wipe_t payload = {
.page = page,
.initialwipe = initialwipe,
};
SendCommandNG(CMD_FLASHMEM_WIPE, (uint8_t *)&payload, sizeof(payload));
PacketResponseNG resp;
if (WaitForResponseTimeout(CMD_FLASHMEM_WIPE, &resp, 10000) == false) {
PrintAndLogEx(WARNING, "timeout while waiting for reply");