return 1;
}
tag_mem_supplied = true;
- if (fread(c.d.asBytes,48,1,pf) == 0) {
+ size_t bytes_read = fread(c.d.asBytes, 48, 1, pf);
+ if ( bytes_read == 0) {
PrintAndLog("Error: File reading error");
fclose(pf);
return 1;
{NULL, NULL, 0, NULL}
};
-int CmdLFHitag(const char *Cmd)
-{
+int CmdLFHitag(const char *Cmd) {
+ clearCommandBuffer();
CmdsParse(CommandTable, Cmd);
return 0;
}
-int CmdHelp(const char *Cmd)
-{
+int CmdHelp(const char *Cmd) {
CmdsHelp(CommandTable);
return 0;
}