windows port: implement abort mecanism in pn532_uart driver (Based on provided patch: many thanks to Edwin Evans)

This commit is contained in:
Romuald Conty
2011-05-10 13:26:57 +00:00
parent c808511694
commit 7bb4f4597d
2 changed files with 25 additions and 7 deletions
+2 -2
View File
@@ -182,7 +182,7 @@ pn532_uart_connect (const nfc_device_desc_t * pndd)
// pipe-based abort mecanism
pipe (DRIVER_DATA (pnd)->iAbortFds);
#else
abort_flag = false;
DRIVER_DATA (pnd)->abort_flag = false;
#endif
pn53x_init(pnd);
@@ -288,7 +288,7 @@ pn532_uart_receive (nfc_device_t * pnd, byte_t * pbtData, const size_t szDataLen
#ifndef WIN32
abort_p = &(DRIVER_DATA (pnd)->iAbortFds[1]);
#else
abort_p = &(DRIVER_DATA (pnd)->abort_flag);
abort_p = (void*)&(DRIVER_DATA (pnd)->abort_flag);
#endif
break;
default: