mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-08-21 05:43:48 -07:00
fix spiffs comms
This commit is contained in:
parent
41c755e12b
commit
7bfc3d8f58
1 changed files with 3 additions and 3 deletions
|
@ -342,12 +342,12 @@ static int l_GetFromFlashMemSpiffs(lua_State *L) {
|
||||||
return returnToLuaWithError(L, "Filename missing or invalid");
|
return returnToLuaWithError(L, "Filename missing or invalid");
|
||||||
|
|
||||||
// get size from spiffs itself !
|
// get size from spiffs itself !
|
||||||
SendCommandMIX(CMD_SPIFFS_STAT, 0, 0, 0, (uint8_t *)destfilename, 32);
|
SendCommandNG(CMD_SPIFFS_STAT, (uint8_t *)destfilename, 32);
|
||||||
PacketResponseNG resp;
|
PacketResponseNG resp;
|
||||||
if (!WaitForResponseTimeout(CMD_ACK, &resp, 2000))
|
if (!WaitForResponseTimeout(CMD_SPIFFS_STAT, &resp, 2000))
|
||||||
return returnToLuaWithError(L, "No response from the device");
|
return returnToLuaWithError(L, "No response from the device");
|
||||||
|
|
||||||
len = resp.oldarg[0];
|
len = resp.data.asDwords[0];
|
||||||
|
|
||||||
if (len == 0)
|
if (len == 0)
|
||||||
return returnToLuaWithError(L, "Filename invalid or empty");
|
return returnToLuaWithError(L, "Filename invalid or empty");
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue