1 parent
9df1c62ec5
commit
23175240e8
3 files changed
+4
-4
No files matched your search
@@ -182,7 +182,7 @@ static int pm3_sign_write(uint8_t *signature, uint8_t slen) {
|
||||
|
||||
clearCommandBuffer();
|
||||
PacketResponseNG resp;
|
||||
SendCommandNG(CMD_FLASHMEM_WRITE, (uint8_t *)&payload, sizeof(payload));
|
||||
SendCommandNG(CMD_FLASHMEM_WRITE, (uint8_t *)&payload, (sizeof(payload) - sizeof(payload.data)) + payload.len);
|
||||
|
||||
if (WaitForResponseTimeout(CMD_FLASHMEM_WRITE, &resp, 2000) == false) {
|
||||
PrintAndLogEx(WARNING, "timeout while waiting for reply");
|
||||
@@ -516,7 +516,7 @@ static int CmdFlashMemLoad(const char *Cmd) {
|
||||
.len = bytes_in_packet,
|
||||
};
|
||||
memcpy(payload.data, data + bytes_sent, bytes_in_packet);
|
||||
SendCommandNG(CMD_FLASHMEM_WRITE, (uint8_t *)&payload, sizeof(payload));
|
||||
SendCommandNG(CMD_FLASHMEM_WRITE, (uint8_t *)&payload, (sizeof(payload) - sizeof(payload.data)) + payload.len);
|
||||
|
||||
bytes_remaining -= bytes_in_packet;
|
||||
bytes_sent += bytes_in_packet;
|
||||
|
||||
@@ -4452,7 +4452,7 @@ static int mfu_3pass_check_keys(uint8_t key_index, uint8_t firstChunk, uint8_t l
|
||||
memcpy(payload.data, keyBlock, nkeys * keysize);
|
||||
|
||||
clearCommandBuffer();
|
||||
SendCommandNG(CMD_HF_MIFAREU3P_CHKKEY, (uint8_t *)&payload, sizeof(payload));
|
||||
SendCommandNG(CMD_HF_MIFAREU3P_CHKKEY, (uint8_t *)&payload, MIFAREU3P_CHKKEY_HEADER + nkeys * keysize);
|
||||
|
||||
PacketResponseNG resp;
|
||||
|
||||
|
||||
+1
-1
@@ -1078,7 +1078,7 @@ int lfsim_upload_gb(void) {
|
||||
for (size_t j = 0; j < len; j++)
|
||||
payload_up.data[j] = g_GraphBuffer[i + j];
|
||||
|
||||
SendCommandNG(CMD_LF_UPLOAD_SIM_SAMPLES, (uint8_t *)&payload_up, sizeof(struct pupload));
|
||||
SendCommandNG(CMD_LF_UPLOAD_SIM_SAMPLES, (uint8_t *)&payload_up, 3 + len); // header (flag+offset) + actual samples, not the padded struct
|
||||
WaitForResponse(CMD_LF_UPLOAD_SIM_SAMPLES, &resp);
|
||||
if (resp.status != PM3_SUCCESS) {
|
||||
PrintAndLogEx(INFO, "Bigbuf is full");
|
||||
|
||||
Reference in new issue
Block a user