ATrappmann / PN5180-Library

PN5180 library for Arduino
GNU Lesser General Public License v2.1
104 stars 92 forks source link

Error compiling sketch in Arduino IDE #26

Closed Slava0096 closed 4 years ago

Slava0096 commented 4 years ago

Hello. Compiling an example PN5180-Library.ino. Gives an error message. What needs to be done to fix it?

Arduino: 1.8.12 (Linux), Плата:"Arduino Nano, ATmega328P (Old Bootloader)"

/home/slava/Arduino/libraries/PN5180-Library-master/PN5180FeliCa.cpp: In member function 'uint8_t PN5180FeliCa::pol_req(uint8_t)': /home/slava/Arduino/libraries/PN5180-Library-master/PN5180FeliCa.cpp:82:26: error: no matching function for call to 'PN5180FeliCa::readData(int, uint8_t&)' if (!readData(20, buffer)) ^ In file included from /home/slava/Arduino/libraries/PN5180-Library-master/PN5180FeliCa.h:22:0, from /home/slava/Arduino/libraries/PN5180-Library-master/PN5180FeliCa.cpp:22: /home/slava/Arduino/libraries/PN5180-Library-master/PN5180.h:102:13: note: candidate: uint8_t PN5180::readData(int) uint8_t readData(int len); ^~~~ /home/slava/Arduino/libraries/PN5180-Library-master/PN5180.h:102:13: note: candidate expects 1 argument, 2 provided exit status 1

ATrappmann commented 4 years ago

Hi Slava,

sorry that was an issue with some code I merged from another user. I fixed PN5180FeliCa.cpp.

The problem should be gone now.

Regards --Andreas.

-----Original-Nachricht----- Betreff: [ATrappmann/PN5180-Library] Error compiling sketch in Arduino IDE (#26) Datum: 2020-03-16T11:19:50+0100 Von: "Slava0096" notifications@github.com An: "ATrappmann/PN5180-Library" PN5180-Library@noreply.github.com

Hello. Compiling an example PN5180-Library.ino. Gives an error message. What needs to be done to fix it? Arduino: 1.8.12 (Linux), Плата:"Arduino Nano, ATmega328P (Old Bootloader)" /home/slava/Arduino/libraries/PN5180-Library-master/PN5180FeliCa.cpp: In member function 'uint8_t PN5180FeliCa::pol_req(uint8_t)': /home/slava/Arduino/libraries/PN5180-Library-master/PN5180FeliCa.cpp:82:26: error: no matching function for call to 'PN5180FeliCa::readData(int, uint8_t&)' if (!readData(20, buffer)) ^ In file included from /home/slava/Arduino/libraries/PN5180-Library-master/PN5180FeliCa.h:22:0, from /home/slava/Arduino/libraries/PN5180-Library-master/PN5180FeliCa.cpp:22: /home/slava/Arduino/libraries/PN5180-Library-master/PN5180.h:102:13: note: candidate: uint8_t PN5180::readData(int) uint8_t readData(int len); ^~~~ /home/slava/Arduino/libraries/PN5180-Library-master/PN5180.h:102:13: note: candidate expects 1 argument, 2 provided exit status 1 — You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/ATrappmann/PN5180-Library/issues/26 , or unsubscribe https://github.com/notifications/unsubscribe-auth/AEVOSHTKGPPWXYM4CHINJHTRHX4LNANCNFSM4LMBFP5Q . [ { "@context": "http://schema.org", "@type": "EmailMessage", "potentialAction": { "@type": "ViewAction", "target": "https://github.com/ATrappmann/PN5180-Library/issues/26", "url": "https://github.com/ATrappmann/PN5180-Library/issues/26", "name": "View Issue" }, "description": "View this Issue on GitHub", "publisher": { "@type": "Organization", "name": "GitHub", "url": "https://github.com" } } ] 

Slava0096 commented 4 years ago

Hello. Now everything is working. Thank you very much.