From 5dc68e68ca20267bd25bd5ad319eb90a8c26c4f1 Mon Sep 17 00:00:00 2001 From: Romuald Conty Date: Fri, 20 Nov 2009 15:35:09 +0000 Subject: [PATCH] Simply turns off the RF field upon exit. --- src/lib/nfc.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/lib/nfc.c b/src/lib/nfc.c index 9116b47..95c5833 100644 --- a/src/lib/nfc.c +++ b/src/lib/nfc.c @@ -349,6 +349,8 @@ void nfc_disconnect(dev_info* pdi) { // Release and deselect all active communications nfc_initiator_deselect_tag(pdi); + // Disable RF field to avoid heating + nfc_configure(pdi,DCO_ACTIVATE_FIELD,false); // Disconnect, clean up and release the device pdi->pdc->disconnect(pdi); }