clausecker / freefare

Go bindings for the libfreefare
GNU Lesser General Public License v3.0
18 stars 3 forks source link

Ultralight C identifies incorrectly causing panic #5

Closed graynk closed 4 years ago

graynk commented 5 years ago

Just got my ACR122 with a pack of Mifare Classic 1k and Ultralight C.

Classic gets recognized correctly without a problem. However, with Ultralight C it panics in wrapTag method, because tag.Type() returns 6, not 1. I jury rigged tag types enum for my case and it works now, but you should probably look into it.