mirror of
https://github.com/nfc-tools/libnfc.git
synced 2026-03-12 02:23:47 +00:00
Simply turns off the RF field upon exit.
This commit is contained in:
@@ -349,6 +349,8 @@ void nfc_disconnect(dev_info* pdi)
|
|||||||
{
|
{
|
||||||
// Release and deselect all active communications
|
// Release and deselect all active communications
|
||||||
nfc_initiator_deselect_tag(pdi);
|
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
|
// Disconnect, clean up and release the device
|
||||||
pdi->pdc->disconnect(pdi);
|
pdi->pdc->disconnect(pdi);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user