Open GoogleCodeExporter opened 9 years ago
Hello,
Your suggests are really good but there is no active developer, ie. no feature
improvement.
I usually do the job to port this library to new libnfc and apply patches when
relevant.
I can't handle your issue, so if you want it and your are able to wrote it,
feel free to submit patches (clone git repo, etc). I will be really happy to
apply your patches upstream.
Original comment by romu...@libnfc.org
on 21 May 2013 at 9:42
Hi Henryk,
for a):
Maybe I overlooked something but why don't you use simply the nfc_device
pointer you have in main() e.g. by making it global?
-#define RFERROR(tag) (nfc_device_get_last_error(*(nfc_device**)tag) ==
NFC_ERFTRANS)
+nfc_device * device = NULL;
+#define RFERROR(tag) (nfc_device_get_last_error(device) == NFC_ERFTRANS)
int main(int argc, char *argv[])
{
int error = EXIT_SUCCESS;
- nfc_device *device = NULL;
+// nfc_device *device = NULL;
and RFERROR(tag) can be just RFERROR
Original comment by yob...@gmail.com
on 27 Jan 2014 at 4:00
Original issue reported on code.google.com by
hen...@ploetzli.ch
on 17 May 2013 at 11:43