examples/pn53x-diagnose: fix memcmp strings coverage
This commit is contained in:
parent
7c274029e7
commit
59c4e69feb
1 changed files with 1 additions and 1 deletions
|
@ -89,7 +89,7 @@ main (int argc, const char *argv[])
|
||||||
|
|
||||||
result = pn53x_transceive (pnd, pncmd_diagnose_communication_line_test, sizeof (pncmd_diagnose_communication_line_test), abtRx, &szRx);
|
result = pn53x_transceive (pnd, pncmd_diagnose_communication_line_test, sizeof (pncmd_diagnose_communication_line_test), abtRx, &szRx);
|
||||||
if (result) {
|
if (result) {
|
||||||
result = (memcmp (pncmd_diagnose_communication_line_test + 2, abtRx, sizeof (pncmd_diagnose_communication_line_test) - 2) == 0);
|
result = (memcmp (pncmd_diagnose_communication_line_test + 1, abtRx, sizeof (pncmd_diagnose_communication_line_test) - 1) == 0);
|
||||||
} else {
|
} else {
|
||||||
nfc_perror (pnd, "pn53x_transceive");
|
nfc_perror (pnd, "pn53x_transceive");
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue