From 0286eeecdddf3fec4c418f584fc28b582a03e9cb Mon Sep 17 00:00:00 2001 From: Romuald Conty Date: Tue, 1 Dec 2009 09:31:29 +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 442f34d..dd5002f 100644 --- a/src/lib/nfc.c +++ b/src/lib/nfc.c @@ -177,6 +177,8 @@ void nfc_disconnect(nfc_device_t* pnd) { // Release and deselect all active communications nfc_initiator_deselect_tag(pnd); + // Disable RF field to avoid heating + nfc_configure(pdi,DCO_ACTIVATE_FIELD,false); // Disconnect, clean up and release the device pnd->pdc->disconnect(pnd); }