mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-08-14 02:27:26 -07:00
chg: swapped return value to bool
This commit is contained in:
parent
0c2c6f3fd7
commit
9c9daae30f
1 changed files with 4 additions and 4 deletions
|
@ -91,16 +91,16 @@ int usage_lf_hid_brute(void){
|
|||
}
|
||||
|
||||
// sending three times. Didn't seem to break the previous sim?
|
||||
static int sendPing(void){
|
||||
static bool sendPing(void){
|
||||
UsbCommand ping = {CMD_PING, {1, 2, 3}};
|
||||
SendCommand(&ping);
|
||||
SendCommand(&ping);
|
||||
SendCommand(&ping);
|
||||
clearCommandBuffer();
|
||||
UsbCommand resp;
|
||||
if (WaitForResponseTimeout(CMD_ACK, &resp, 1000))
|
||||
return 0;
|
||||
return 1;
|
||||
if (!WaitForResponseTimeout(CMD_ACK, &resp, 1000))
|
||||
return false;
|
||||
return true;
|
||||
}
|
||||
static bool sendTry(uint8_t fmtlen, uint32_t fc, uint32_t cn, uint32_t delay, uint8_t *bits, bool verbose){
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue