-static int sendPing(){
- UsbCommand resp;
- UsbCommand ping = {CMD_PING};
- clearCommandBuffer(); SendCommand(&ping);
- clearCommandBuffer(); SendCommand(&ping);
- clearCommandBuffer(); SendCommand(&ping);
- if (WaitForResponseTimeout(CMD_ACK, &resp, 1000)) {
- PrintAndLog("aborted via keyboard!");
- return 0;
- }
- PrintAndLog("Device didnt respond to ABORT");
- return 1;
-}