mirror of
https://github.com/nfc-tools/libnfc.git
synced 2026-03-11 10:03:49 +00:00
nfc-poll: disconnect from device if error in order to prevent from keep up RF field which have side effects: its power-consumming, device can became warm and it generates useless radiofrequencies.
This commit is contained in:
@@ -137,10 +137,10 @@ main (int argc, const char *argv[])
|
|||||||
};
|
};
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
|
nfc_disconnect (pnd);
|
||||||
nfc_perror (pnd, "nfc_initiator_poll_targets");
|
nfc_perror (pnd, "nfc_initiator_poll_targets");
|
||||||
exit (EXIT_FAILURE);
|
exit (EXIT_FAILURE);
|
||||||
}
|
}
|
||||||
|
|
||||||
nfc_disconnect (pnd);
|
nfc_disconnect (pnd);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user