In order to add more supported readers and platforms, we must make libnfc an optional part of the process. It's currently hardcoded in the main poll loop all through it. Still working out the plan, but I think there needs to be a generic "reader" interface each driver like libnfc implements. The driver is specified by the auto-detection, connection string or defaults.
The /readers/0/write endpoint is now blocking and returns an error if necessary. Not 100% happy with this implementation but it should be changeable later without affecting the API.
libnfc is no longer called anywhere in the /cmd/nfc (MiSTer main) package and the -write flag has been rewritten to use the API endpoint instead.
In order to add more supported readers and platforms, we must make libnfc an optional part of the process. It's currently hardcoded in the main poll loop all through it. Still working out the plan, but I think there needs to be a generic "reader" interface each driver like libnfc implements. The driver is specified by the auto-detection, connection string or defaults.