mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-08-21 13:53:55 -07:00
struct
This commit is contained in:
parent
0a8c303685
commit
22f8440183
1 changed files with 3 additions and 3 deletions
|
@ -1205,10 +1205,10 @@ static int CmdT55xxReadTrace(const char *Cmd) {
|
||||||
si += 5;
|
si += 5;
|
||||||
data.dw = PackBits(si, 15, DemodBuffer);
|
data.dw = PackBits(si, 15, DemodBuffer);
|
||||||
|
|
||||||
struct tm *t = NULL;
|
struct tm *tm = NULL;
|
||||||
time_t now = time(NULL);
|
time_t now = time(NULL);
|
||||||
localtime_r(&now, t);
|
localtime_r(&now, tm);
|
||||||
if (data.year > t.tm_year - 110)
|
if (data.year > tm->tm_year - 110)
|
||||||
data.year += 2000;
|
data.year += 2000;
|
||||||
else
|
else
|
||||||
data.year += 2010;
|
data.year += 2010;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue