X-Git-Url: https://git.zerfleddert.de/cgi-bin/gitweb.cgi/proxmark3-svn/blobdiff_plain/bca71079315869b50f3bd0192ce984e2dfed0378..28415b5d902e391b5bbfd615b3a42d8cffbb0ce3:/client/cmdlfem4x.c?ds=sidebyside diff --git a/client/cmdlfem4x.c b/client/cmdlfem4x.c index 61b7047d..f3c754ff 100644 --- a/client/cmdlfem4x.c +++ b/client/cmdlfem4x.c @@ -173,7 +173,7 @@ int CmdEM410xWrite(const char *Cmd) { uint64_t id = 0xFFFFFFFFFFFFFFFF; // invalid id value int card = 0xFF; // invalid card value - unsigned int clock = 0; // invalid clock value + uint32_t clock = 0; // invalid clock value sscanf(Cmd, "%" PRIx64 " %d %d", &id, &card, &clock); @@ -199,8 +199,8 @@ int CmdEM410xWrite(const char *Cmd) // Check Clock // Default: 64 - if (clock == 0) - clock = 64; + if (clock == 0) + clock = 64; // Allowed clock rates: 16, 32, 40 and 64 if ((clock != 16) && (clock != 32) && (clock != 64) && (clock != 40)) { @@ -225,7 +225,6 @@ int CmdEM410xWrite(const char *Cmd) UsbCommand c = {CMD_EM410X_WRITE_TAG, {card, (uint32_t)(id >> 32), (uint32_t)id}}; SendCommand(&c); - return 0; }