mirror of
https://github.com/nfc-tools/libnfc.git
synced 2026-04-20 13:36:19 +00:00
examples, test and utils use now nfc_exit() function.
This commit is contained in:
@@ -51,4 +51,5 @@ test_access_storm (void)
|
||||
|
||||
n--;
|
||||
}
|
||||
nfc_exit ();
|
||||
}
|
||||
|
||||
@@ -43,6 +43,7 @@ cut_teardown (void)
|
||||
{
|
||||
nfc_close (devices[TARGET]);
|
||||
nfc_close (devices[INITIATOR]);
|
||||
nfc_exit ();
|
||||
}
|
||||
|
||||
struct thread_data {
|
||||
|
||||
@@ -43,6 +43,7 @@ cut_teardown (void)
|
||||
{
|
||||
nfc_close (devices[TARGET]);
|
||||
nfc_close (devices[INITIATOR]);
|
||||
nfc_exit ();
|
||||
}
|
||||
|
||||
struct thread_data {
|
||||
|
||||
@@ -41,6 +41,7 @@ cut_teardown (void)
|
||||
{
|
||||
nfc_close (second_device);
|
||||
nfc_close (first_device);
|
||||
nfc_exit ();
|
||||
}
|
||||
|
||||
struct thread_data {
|
||||
|
||||
@@ -44,4 +44,5 @@ test_register_endianness (void)
|
||||
cut_assert_equal_uint (0x55, value, cut_message ("check register value"));
|
||||
|
||||
nfc_close (device);
|
||||
nfc_exit ();
|
||||
}
|
||||
|
||||
@@ -35,4 +35,5 @@ test_register_endianness (void)
|
||||
cut_assert_equal_int (0, res, cut_message ("read register 0xFFF0"));
|
||||
|
||||
nfc_close (device);
|
||||
nfc_exit ();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user