nfc_target_receive_bits() function does not now use pszRxBits as parameter because this function returns it.

This commit is contained in:
Audrey Diacre 2012-01-05 15:50:07 +00:00
parent 239fd750c4
commit 7e7ee3299e
7 changed files with 12 additions and 11 deletions

View file

@ -172,7 +172,7 @@ main (int argc, char *argv[])
while (true) {
// Test if we received a frame
if (nfc_target_receive_bits (pnd, abtRecv, &szRecvBits, NULL) > 0) {
if ((szRecvBits = nfc_target_receive_bits (pnd, abtRecv, NULL)) > 0) {
// Prepare the command to send back for the anti-collision request
switch (szRecvBits) {
case 7: // Request or Wakeup