chg: @piwi's code cleanup and some more.
ref: https://github.com/Proxmark/proxmark3/commit/43534cbad22da2db2e1b59f9e08f0cadfe0d8d54
This commit is contained in:
1 parent
b4762e2712
commit
9c624f67b3
31 files changed
+176
-183
No files matched your search
+1
-1
@@ -280,7 +280,7 @@ int CmdTIWrite(const char *Cmd)
|
||||
{
|
||||
int res = 0;
|
||||
UsbCommand c = {CMD_WRITE_TI_TYPE};
|
||||
res = sscanf(Cmd, "%012"llx" %012"llx" %012"llx"", &c.arg[0], &c.arg[1], &c.arg[2]);
|
||||
res = sscanf(Cmd, "%012" SCNx64 " %012" SCNx64 " %012" SCNx64, &c.arg[0], &c.arg[1], &c.arg[2]);
|
||||
|
||||
if (res == 2) c.arg[2]=0;
|
||||
if (res < 2) {
|
||||
|
||||
Reference in new issue
Block a user