rename global conn

This commit is contained in:
Philippe Teuwen committed 2021-08-21 20:21:08 +02:00
1 parent 8280fc3c07
commit 6a2f2b3979
23 files changed
+87 -87

No files matched your search

+2 -2
View File
@@ -140,7 +140,7 @@ static int CmdHFEPAPACEReplay(const char *Cmd) {
// transfer the APDUs to the Proxmark
uint8_t data[PM3_CMD_DATA_SIZE];
// fast push mode
conn.block_after_ACK = true;
g_conn.block_after_ACK = true;
for (int i = 0; i < ARRAYLEN(apdu_lengths); i++) {
// transfer the APDU in several parts if necessary
@@ -152,7 +152,7 @@ static int CmdHFEPAPACEReplay(const char *Cmd) {
}
if ((i == ARRAYLEN(apdu_lengths) - 1) && (j * sizeof(data) >= apdu_lengths[i] - 1)) {
// Disable fast mode on last packet
conn.block_after_ACK = false;
g_conn.block_after_ACK = false;
}
memcpy(data, // + (j * sizeof(data)),
apdus[i] + (j * sizeof(data)),