style
This commit is contained in:
1 parent
0dacfb996f
commit
79d1e102af
3 files changed
+11
-11
No files matched your search
@@ -1170,14 +1170,14 @@ int getIndalaBits(uint8_t fc, uint16_t cn, uint8_t *bits) {
|
||||
bits[62] = 0;
|
||||
bits[63] = 1;
|
||||
}
|
||||
|
||||
|
||||
// add parity
|
||||
// bits[34] = 1; // p1 64 - 30 = 34
|
||||
// bits[38] = 1; // p2 68 - 30 = 38
|
||||
|
||||
// 92 = 62
|
||||
// 93 = 63
|
||||
|
||||
|
||||
bits[34] = 0; // parity for odd bits
|
||||
bits[38] = 0; // parity for even bits
|
||||
uint8_t p1 = 1;
|
||||
|
||||
@@ -2245,11 +2245,11 @@ int DesfireValueFileOperations(DesfireContext_t *dctx, uint8_t fid, uint8_t oper
|
||||
PrintAndLogEx(INFO, "MAC mode failed with length error, retrying with plain mode");
|
||||
DesfireCommunicationMode original_mode = dctx->commMode;
|
||||
dctx->commMode = DCMPlain;
|
||||
|
||||
|
||||
memset(resp, 0, sizeof(resp));
|
||||
resplen = 0;
|
||||
res = DesfireCommand(dctx, operation, data, datalen, resp, &resplen, -1);
|
||||
|
||||
|
||||
// Restore original mode for future commands
|
||||
dctx->commMode = original_mode;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user