Skip to content

Commit

Permalink
fix library for libnfc version 1.8.0
Browse files Browse the repository at this point in the history
  • Loading branch information
clausecker committed May 22, 2020
1 parent 2179c23 commit 2a3531e
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 5 deletions.
6 changes: 6 additions & 0 deletions CHANGES
Original file line number Diff line number Diff line change
Expand Up @@ -63,3 +63,9 @@ Release 2.1.1 (2020-05-22)

Release 2.1.2 (2020-05-22)
I Fix Go import paths (sorry, this is my first time using go mod)

Release 2.1.3 (2020-05-22)
I In reaction to the newly released libnfc 1.8.0 which fixes the ABI
breakage, revert the enumeration order changes and retract releases
2.1.0 to 2.1.2.
N Requires libnfc version >= 1.8.0.
11 changes: 7 additions & 4 deletions README
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,11 @@ This is a Go wrapper for the libnfc.

You need the following libnfc version to use this code:

versions <= 2.0.2 need libnfc version 1.7.0
version >= 2.1.0 need libnfc version 1.7.2 or later
versions <= 2.0.2 need libnfc version 1.7.0 or 1.7.1
version >= 2.1.0 need libnfc version 1.8.0 or later

Due to an unfortunate ABI breakage, libnfc version 1.7.2 cannot be used
with this wrapper.

The code has not been thoroughly tested yet. Please report any errors to
the project. The API is considered stable as of version 2.0 and will
Expand All @@ -15,14 +18,14 @@ scheme for their versioning involving the 2.0 and latest directories.
These can safely be ignored for new developments. Using Go modules,
only version 2.1.0 and later are available.

To use this library, install libnfc version 1.7.2 or newer and import
To use this library, install libnfc version 1.8.0 or newer and import

github.com/fuzxxl/nfc/v2

into your project. This project uses go modules for versionning and
tries its best to follow the usual guidelines for interface stability.

Copyright (c) 2014, 2015, 2020 Robert Clausecker <[email protected]>
Copyright (c) 2014--2020 Robert Clausecker <[email protected]>

This program is free software: you can redistribute it and/or modify it
under the terms of the GNU Lesser General Public License as published by
Expand Down
2 changes: 1 addition & 1 deletion v2/nfc.go
Original file line number Diff line number Diff line change
Expand Up @@ -118,13 +118,13 @@ const (
const (
ISO14443a = iota + 1
Jewel
Barcode // Thinfilm NFC Barcode
ISO14443b
ISO14443bi // pre-ISO14443B aka ISO/IEC 14443 B' or Type B'
ISO14443b2sr // ISO14443-2B ST SRx
ISO14443b2ct // ISO14443-2B ASK CTx
Felica
DEP
Barcode // Thinfilm NFC Barcode
ISO14443biClass // HID iClass 14443B mode
)

Expand Down

0 comments on commit 2a3531e

Please sign in to comment.