Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

fixed..

  • Loading branch information...
commit 4e03d5343df95378740a62e1fde13e82fb9a43ab 1 parent 48db3b8
ubuntu authored
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);
- }
}
Please sign in to comment.
Something went wrong with that request. Please try again.