mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-08-14 02:27:26 -07:00
cppcheck
This commit is contained in:
parent
51ad5c2332
commit
15597c6c38
1 changed files with 1 additions and 2 deletions
|
@ -539,9 +539,8 @@ static int CmdPing(const char *Cmd) {
|
|||
data[i] = i & 0xFF;
|
||||
SendCommandNG(CMD_PING, data, len);
|
||||
if (WaitForResponseTimeout(CMD_PING, &resp, 1000)) {
|
||||
bool error = false;
|
||||
if (len) {
|
||||
error = memcmp(data, resp.data.asBytes, len) != 0;
|
||||
bool error = (memcmp(data, resp.data.asBytes, len) != 0);
|
||||
PrintAndLogEx((error) ? ERR : SUCCESS, "Ping response " _GREEN_("received") "and content is %s", error ? _RED_("NOT ok") : _GREEN_("OK"));
|
||||
} else {
|
||||
PrintAndLogEx(SUCCESS, "Ping response " _GREEN_("received"));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue