UsbCommand ping = {CMD_PING, {1, 2, 3}};
SendCommand(&ping);
SendCommand(&ping);
- SendCommand(&ping);
-
+ SendCommand(&ping);
clearCommandBuffer();
UsbCommand resp;
- if (WaitForResponseTimeout(CMD_ACK, &resp, 1000)) {
+ if (WaitForResponseTimeout(CMD_ACK, &resp, 1000))
return 0;
- }
return 1;
}
memcpy(c.d.asBytes, bs, bs_len);
clearCommandBuffer();
SendCommand(&c);
-
msleep(delay);
sendPing();
return TRUE;
break;
}
- // start
-
PrintAndLog("Bruteforceing AWID %d Reader", fmtlen);
PrintAndLog("Press pm3-button to abort simulation or press key");
printf("Device offline\n");
return 2;
}
-
- if (ukbhit()) return sendPing();
+ if (ukbhit()) {
+ PrintAndLog("aborted via keyboard!");
+ return sendPing();
+ }
// Do one up
if ( up < 0xFFFF )