OLD/MIX convert to NG: Phase C9
This commit is contained in:
1 parent
721641428c
commit
72ff6a5b80
9 files changed
+123
-24
No files matched your search
@@ -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");
|
||||
|
||||
Reference in new issue
Block a user