chg: some debug

This commit is contained in:
iceman1001 2017-10-12 15:20:41 +02:00
parent 71a500d824
commit d3654ab41c
2 changed files with 2 additions and 1 deletions

View file

@ -1376,7 +1376,7 @@ int CmdHF14AMfChk_fast(const char *Cmd) {
timeout = 0;
t2 = msclock() - t2;
PrintAndLog("\n[-] Chunk: %.1fs | found %u/%u keys", (float)(t2/1000.0), curr_keys, (SectorsCnt<<1));
PrintAndLog("\n[-] Chunk: %.1fs | found %u/%u keys (%u)", (float)(t2/1000.0), curr_keys, (SectorsCnt<<1), size);
// all keys?
if ( curr_keys == SectorsCnt*2 || lastChunk ) {

View file

@ -106,6 +106,7 @@ static void *uart_receiver(void *targ) {
while (arg->run) {
rxlen = 0;
if (uart_receive(sp, prx, sizeof(UsbCommand) - (prx-rx), &rxlen)) {
prx += rxlen;
if (prx-rx < sizeof(UsbCommand)) {
continue;