Some optimisations in initialisation of registers

This commit is contained in:
Philippe Teuwen 2011-05-10 23:44:27 +00:00
parent 2a9f876363
commit 21dfe81d0b
5 changed files with 59 additions and 48 deletions

View file

@ -127,11 +127,11 @@ main (int argc, const char *argv[])
printf ("Connected to NFC device: %s\n", pnd->acName);
nfc_modulation_t nm;
nm.nmt = NMT_ISO14443A;
nm.nbr = NBR_106;
// List ISO14443A targets
nfc_modulation_t nm = {
.nmt = NMT_ISO14443A,
.nbr = NBR_106,
};
if (nfc_initiator_list_passive_targets (pnd, nm, ant, MAX_TARGET_COUNT, &szTargetFound)) {
size_t n;
if (verbose || (szTargetFound > 0)) {