Comments (4)
Thank you for reporting this issue. Currently investigating the problem and looking for a fix.
To your first point, the call to C.nfc_initiator_select_passive_target
looks like this:
n := C.nfc_initiator_select_passive_target(
*d.d,
C.nfc_modulation{C.nfc_modulation_type(m.Type), C.nfc_baud_rate(m.BaudRate)},
(*C.uint8_t)(&initData[0]),
C.size_t(len(initData)),
&pnt)
where initData
is the second parameter of (*Device).InitiatorSelectPassiveTarget
. It's used twice in the appropriate places. Could you elaborate with what you mean by βthe second parameter of Device.InitiatorSelectPassiveTarget
is not used?β There is a possible nil pointer dereference (which I'm fixing right now).
The second error is already fixed locally on my machine.
from nfc.
Thank you for your answer!
It's used twice in the appropriate places
My mistake, I had a "hotfix" version on my computer to handle the null case... Sorry for that.
There is still a tiny bug here you underlined with the null default value, or in case of empty slice.
from nfc.
Closing this. Please tell me if the issue persists and reopen if it does.
from nfc.
Now works like a charm, thank you very much :)
from nfc.
Related Issues (11)
- Explicitly check ranges in Target.Marshall() implementations HOT 1
- Help with cross compiling for Raspberry Pi HOT 1
- undefined: context HOT 7
- thread safety? HOT 4
- github.com\clausecker\nfc\[email protected]\nfc.go:208:17: undefined: context HOT 6
- nfc_initiator_deselect_target() is not wrapped
- Does not compile with go 1.3 (so you said) HOT 7
- ISO14443aTarget marshalling problem? HOT 6
- Initiator Target Selection? HOT 3
- Device.InitiatorSelectPassiveTarget panic when InfiniteSelect == false and no tag was found HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. πππ
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from nfc.