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:
parent
0e37a1e9e9
commit
bd547418e9
1 changed files with 1 additions and 1 deletions
|
@ -137,10 +137,10 @@ main (int argc, const char *argv[])
|
|||
};
|
||||
}
|
||||
} else {
|
||||
nfc_disconnect (pnd);
|
||||
nfc_perror (pnd, "nfc_initiator_poll_targets");
|
||||
exit (EXIT_FAILURE);
|
||||
}
|
||||
|
||||
nfc_disconnect (pnd);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue