From 9c9daae30f0f7321ea048064f70f354910db04b5 Mon Sep 17 00:00:00 2001 From: iceman1001 Date: Thu, 14 Sep 2017 11:08:24 +0200 Subject: [PATCH] chg: swapped return value to bool --- client/cmdlfhid.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/client/cmdlfhid.c b/client/cmdlfhid.c index 05631ae04..75c0a2dcb 100644 --- a/client/cmdlfhid.c +++ b/client/cmdlfhid.c @@ -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){