diff --git a/client/cmdlft55xx.c b/client/cmdlft55xx.c index c1573285c..10fd1b7be 100644 --- a/client/cmdlft55xx.c +++ b/client/cmdlft55xx.c @@ -1079,7 +1079,7 @@ int CmdT55xxReadTrace(const char *Cmd) { // sanity check. if (!SanityOfflineCheck(false)) return 1; - if (!AquireData(T55x7_PAGE1, REGULAR_READ_MODE_BLOCK, pwdmode, password)) + if (!AquireData(T55x7_PAGE1, T55x7_TRACE_BLOCK1, pwdmode, password)) return 1; } @@ -1914,7 +1914,7 @@ bool tryDetectP1(bool getData) { bool st = true; if (getData) { - if (!AquireData(T55x7_PAGE1, 1, false, 0)) + if (!AquireData(T55x7_PAGE1, T55x7_TRACE_BLOCK1, false, 0)) return false; } @@ -2043,7 +2043,7 @@ int CmdT55xxDetectPage1(const char *Cmd) { if (errors) return usage_t55xx_detectP1(); if (!useGB) { - if (!AquireData(T55x7_PAGE1, 1, usepwd, password)) + if (!AquireData(T55x7_PAGE1, T55x7_TRACE_BLOCK1, usepwd, password)) return false; } bool success = tryDetectP1(false); diff --git a/client/cmdlft55xx.h b/client/cmdlft55xx.h index 1c1d77490..29cdce4fb 100644 --- a/client/cmdlft55xx.h +++ b/client/cmdlft55xx.h @@ -29,6 +29,8 @@ #define T55x7_CONFIGURATION_BLOCK 0x00 +#define T55x7_TRACE_BLOCK1 0x01 +#define T55x7_TRACE_BLOCK2 0x02 #define T55x7_PAGE0 0x00 #define T55x7_PAGE1 0x01 #define T55x7_PWD 0x00000010