Commit graph

1797 commits

Author SHA1 Message Date
Nobuhiro Iwamatsu
2bcca34a59 Add myself to copyright
Signed-off-by: Nobuhiro Iwamatsu <iwamatsu@nigauri.org>
2013-01-25 14:26:49 +01:00
Nobuhiro Iwamatsu
8d32b00af2 Change Maintainer filed to myself
Signed-off-by: Nobuhiro Iwamatsu <iwamatsu@nigauri.org>
2013-01-25 14:26:49 +01:00
Nobuhiro Iwamatsu
c0b10139e2 Fix package version for debian/changelog
Signed-off-by: Nobuhiro Iwamatsu <iwamatsu@nigauri.org>
2013-01-25 14:26:49 +01:00
Nobuhiro Iwamatsu
edf540bb71 Remove *.la from debian/libnfc-dev.install
Signed-off-by: Nobuhiro Iwamatsu <iwamatsu@nigauri.org>
2013-01-25 14:26:49 +01:00
Nobuhiro Iwamatsu
103a67fb75 Remove libusb-0.1-4 from Depends
Signed-off-by: Nobuhiro Iwamatsu <iwamatsu@nigauri.org>
2013-01-25 14:26:49 +01:00
Nobuhiro Iwamatsu
2db7087041 Add support multiarch
Signed-off-by: Nobuhiro Iwamatsu <iwamatsu@nigauri.org>
2013-01-25 14:26:49 +01:00
Nobuhiro Iwamatsu
c8e2d39cbc Update debhelper version to 8
This is not update to 9. Because I think about backport and use in
Squeeze (Debian 6.0).

Signed-off-by: Nobuhiro Iwamatsu <iwamatsu@nigauri.org>
2013-01-25 14:26:49 +01:00
Nobuhiro Iwamatsu
09e9a532d9 Enable varbose build log
If we enable varbose build log, hardening checking is easy.

Signed-off-by: Nobuhiro Iwamatsu <iwamatsu@nigauri.org>
2013-01-25 14:26:49 +01:00
Nobuhiro Iwamatsu
a6301e4310 Update Standards-Version to 3.9.4
Signed-off-by: Nobuhiro Iwamatsu <iwamatsu@nigauri.org>
2013-01-25 14:26:49 +01:00
Ludovic Rousseau
109d496222 Compilation: Change the order of arguments
Put the -lnfc at the end of the command lie to avoid undefined
references on Ubuntu 12.04.

Close #219
2013-01-25 14:18:28 +01:00
Philippe Teuwen
5876e33e49 Fix returned value ((res=f()<0)) => ((res=f())<0); this solves a bug in nfc-relay-picc 2013-01-22 00:56:34 +01:00
Philippe Teuwen
0ac3b26982 nfc-relay-picc: Fix received bytes count 2013-01-22 00:54:47 +01:00
Philippe Teuwen
9815ac728f nfc-emulate-uid: fix BCC 2013-01-22 00:45:42 +01:00
Romuald Conty
49d7ce61f3 Debian package uses the default configure script 2013-01-20 17:00:57 +01:00
Romuald Conty
ca7d01ade3 Enables pn532_uart driver by default 2013-01-20 17:00:21 +01:00
Philippe Teuwen
edacadbce6 make style 2013-01-20 15:48:32 +01:00
Philippe Teuwen
ea05559fa5 Prepare for version 1.7.0-RC2 2013-01-20 15:45:57 +01:00
Philippe Teuwen
84af758877 Add /etc/nfc/devices.d/ example in NEWS 2013-01-20 15:41:53 +01:00
Philippe Teuwen
532b30a2cd Merge branch 'test_user_defined_device_optional'
* test_user_defined_device_optional:
  Fix double malloc
  Allow device.optional=true to tolerate missing device
2013-01-20 15:36:29 +01:00
Philippe Teuwen
bcd53a7cdc Fix double malloc 2013-01-20 15:24:03 +01:00
Philippe Teuwen
4576bad369 Fix ISO14443B' ATS broken by updated API 2013-01-19 00:14:19 +01:00
Philippe Teuwen
04a7d2a3ba Allow device.optional=true to tolerate missing device 2013-01-18 22:54:44 +01:00
Philippe Teuwen
24fed18590 Require cutter >=1.1.7 rather than >=1.1.8 2013-01-18 22:48:24 +01:00
Romuald Conty
2d53208082 Fix unit tests
This commit bring tests to life!

New issue
Summary: test_dep_states test fails
When first device is idle, the second one states  "RF Transmission Error" instead of simply not found any available device.
Full cutter log here:

debug   libnfc.chip.pn53x       InJumpForDEP
debug   libnfc.chip.pn53x       Timeout values: 300
debug   libnfc.bus.uart TX: 00  00  ff  05  fb  d4  56  00  00  00  d6  00
debug   libnfc.bus.uart RX: 00  00  ff  00  ff  00
debug   libnfc.chip.pn53x       PN53x ACKed
debug   libnfc.bus.uart Timeout!
debug   libnfc.chip.pn53x       InJumpForDEP
debug   libnfc.chip.pn53x       Timeout values: 300
debug   libnfc.bus.uart TX: 00  00  ff  05  fb  d4  56  00  00  00  d6  00
debug   libnfc.bus.uart RX: 00  00  ff  00  ff  00
debug   libnfc.chip.pn53x       PN53x ACKed
debug   libnfc.bus.uart RX: 00  00  ff  03  fd
debug   libnfc.bus.uart RX: d5  57
debug   libnfc.bus.uart RX: 01
debug   libnfc.bus.uart RX: d3  00
debug   libnfc.chip.pn53x       Chip error: "Timeout" (01), returned error: "RF Transmission Error" (-20))
F
===============================================================================
Failure: test_dep_states
Problem with nfc_idle
<0 == res>
expected: <0>
  actual: <-20>

diff:
? -20

./test_device_modes_as_dep.c:171: initiator_thread(): cut_assert_equal_int(0, res, cut_test_context_set_current_result_user_message( cut_test_context_current_peek(), cut_test_context_take_printf(cut_test_context_current_peek(), "Problem with nfc_idle")))
===============================================================================
2013-01-18 18:28:45 +01:00
Romuald Conty
443f70dd65 Fix wrong condition to display a warning when user disables autoscan 2013-01-18 18:14:59 +01:00
Romuald Conty
cbdac66fa4 Add quick start examples compliation to "make check" 2013-01-18 16:05:43 +01:00
Romuald Conty
9a3a43cdba Ignore generated files into test/ directory 2013-01-18 14:36:35 +01:00
Philippe Teuwen
2fbf5ab741 Fix debian/control for new API version libnfc3->libnfc4 2013-01-16 08:16:10 +01:00
Romuald Conty
085fb60777 Fix version fetch using make_release.sh 2013-01-15 18:16:56 +01:00
Romuald Conty
6b5cd55fbf Always add newer files when releasing 2013-01-15 14:28:34 +01:00
Romuald Conty
f2be582cd5 Fix timeout documentation 2013-01-15 14:22:21 +01:00
Romuald Conty
5d45718fe1 Fix Debian package for 1.7.0-RC1 2013-01-15 14:21:19 +01:00
Romuald Conty
945e1d140d Bump API version 2013-01-15 13:45:48 +01:00
Romuald Conty
50401c5bf6 Fix CMake build 2013-01-15 13:45:28 +01:00
Philippe Teuwen
0458c8e24e debian/rules: don't enable debug by default anymore as it can be done easily at runtime with LIBNFC_LOG_LEVEL 2013-01-10 23:57:12 +01:00
Romuald Conty
ff3d8f708d Debian package update 2012-12-23 20:09:26 +01:00
Romuald Conty
de62e4c011 Prepare 1.7.0 release candidate 1 2012-12-23 20:04:34 +01:00
Romuald Conty
82c41b4fc1 Fixes style: make style 2012-12-09 20:09:55 +01:00
Romuald Conty
007b78cbb4 Uses less ambiguous include when compiles for Windows platform 2012-12-09 19:27:46 +01:00
Romuald Conty
8d9d6a5696 Add ttyAMA* to radix list from UART scanning
It allows a PN532 UART connected on raspberry pi to be detected when intrusive scan allowed (e.g. with nfc-scan-device -i)
2012-12-09 19:10:35 +01:00
Romuald Conty
484dd5dfa5 Improves mingw-cross-configure.sh script using patch provided by Frank Morgner, thanks! 2012-12-05 18:27:40 +01:00
Romuald Conty
0af58b1cdd Attempt to build libnfc under for Windows target.
This commit fixes some issues related to the new log system, but libnfc can not build on Windows in this stage since regex.h have been introduced for configuration file parsing and regex.h is not available in Windows.

New issue
Summary: Update Windows port
Due to the recent configuration file parsing introduction, libnfc can not be built under Windows: regex.h is missing.
Google says there is a port of PCRE for Windows which contains a compiliant regex.h.
Contribution are welcome as nobody from currently active team use Windows as OS.
2012-12-05 18:22:27 +01:00
Romuald Conty
8f015c4369 Suppress warnings: "ISO C99 requires rest arguments to be used" 2012-12-05 16:53:43 +01:00
Romuald Conty
08f428fbdf Fix CMake build. 2012-12-05 16:47:08 +01:00
Romuald Conty
53349c8c20 Prevent from segfault if user add too many devices in configuration file(s) 2012-12-05 16:41:44 +01:00
Romuald Conty
a3a3fa2848 Enhance messages display 2012-12-05 16:40:52 +01:00
Romuald Conty
995368cffa Update quick_start_examples 2012-12-05 02:05:16 +01:00
Philippe Teuwen
6be0b2396c Fix typos 2012-12-05 01:32:45 +01:00
Romuald Conty
5b0e276572 Examples and utils are now updated to use the requiered nfc_context 2012-12-05 00:51:13 +01:00
Romuald Conty
dc949c257e Removes nfc_get_default_device() function.
The nfc_get_default_device() is not needed anymore since the first element from returned nfc_connstring list of nfc_list_devices() function.
Plus, nfc_open() can be use with NULL nfc_connstring which will select automatically the first available device (ie. the default one).
2012-12-05 00:51:13 +01:00