nfc_target_receive_*() need to know rx buffer size
This commit is contained in:
parent
601105ef79
commit
22bea8d99b
11 changed files with 31 additions and 23 deletions
|
|
@ -172,7 +172,7 @@ main (int argc, char *argv[])
|
|||
|
||||
while (true) {
|
||||
// Test if we received a frame
|
||||
if ((szRecvBits = nfc_target_receive_bits (pnd, abtRecv, NULL)) > 0) {
|
||||
if ((szRecvBits = nfc_target_receive_bits (pnd, abtRecv, sizeof (abtRecv), 0)) > 0) {
|
||||
// Prepare the command to send back for the anti-collision request
|
||||
switch (szRecvBits) {
|
||||
case 7: // Request or Wakeup
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue