Permalink
Browse files

fixed..

  • Loading branch information...
1 parent 48db3b8 commit 4e03d5343df95378740a62e1fde13e82fb9a43ab ubuntu committed Nov 21, 2009
Showing with 4 additions and 3 deletions.
  1. +4 −3 ext/nfc/nfc_device.c
View
7 ext/nfc/nfc_device.c
@@ -68,13 +68,14 @@ static VALUE dev_select(VALUE self, VALUE tag)
tag_info * ti = calloc(1, sizeof(tag_info));
+ if (nfc_initiator_select_tag(dev, IM_ISO14443A_106, NULL, 0, ti) ) {
+ return Data_Wrap_Struct(cNfcISO14443A, 0, free, ti);
+ }
+
if (nfc_initiator_select_tag(dev, IM_FELICA_212, abtFelica, 5, ti) || nfc_initiator_select_tag(dev, IM_FELICA_424, abtFelica, 5, ti)) {
return Data_Wrap_Struct(cNfcFelica, 0, free, ti);
}
- if (nfc_initiator_select_tag(dev, IM_ISO14443A_106, NULL, 0, ti) ) {
- return Data_Wrap_Struct(cNfcISO14443A, 0, free, ti);
- }
}

0 comments on commit 4e03d53

Please sign in to comment.