Skip to content

Commit

Permalink
Merge pull request #30 from ElectronicCats/fixMbedError
Browse files Browse the repository at this point in the history
Only pass arguments of type uint8_t to the Arduino write function.
  • Loading branch information
sabas1080 authored Jul 19, 2022
2 parents b0297f3 + 073e149 commit 3d4a243
Show file tree
Hide file tree
Showing 10 changed files with 12 additions and 9 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/LibraryBuild.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ jobs:
- arduino:avr:uno
- arduino:avr:leonardo
- arduino:samd:nano_33_iot
- arduino:mbed:envie_m7
- esp8266:esp8266:huzzah:eesz=4M3M,xtal=80

# Specify parameters for each board.
Expand All @@ -44,6 +45,8 @@ jobs:
- arduino-boards-fqbn: arduino:avr:leonardo

- arduino-boards-fqbn: arduino:samd:nano_33_iot

- arduino-boards-fqbn: arduino:mbed:envie_m7

- arduino-boards-fqbn: esp8266:esp8266:huzzah:eesz=4M3M,xtal=80
platform-url: https://arduino.esp8266.com/stable/package_esp8266com_index.json
Expand Down
2 changes: 1 addition & 1 deletion examples/DetectTags/DetectTags.ino
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ RfIntf_t RfInterface; //Intarface t

uint8_t mode = 1; // modes: 1 = Reader/ Writer, 2 = Emulation

int ResetMode(){ //Reset the configuration mode after each reading
void ResetMode(){ //Reset the configuration mode after each reading
Serial.println("Re-initializing...");
nfc.ConfigMode(mode);
nfc.StartDiscovery(mode);
Expand Down
2 changes: 1 addition & 1 deletion examples/ISO14443-3A_read_block/ISO14443-3A_read_block.ino
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ RfIntf_t RfInterface; //Intarface t

uint8_t mode = 1; // modes: 1 = Reader/ Writer, 2 = Emulation

int ResetMode(){ //Reset the configuration mode after each reading
void ResetMode(){ //Reset the configuration mode after each reading
Serial.println("Re-initializing...");
nfc.ConfigMode(mode);
nfc.StartDiscovery(mode);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ RfIntf_t RfInterface; //Intarface t

uint8_t mode = 1; // modes: 1 = Reader/ Writer, 2 = Emulation

int ResetMode(){ //Reset the configuration mode after each reading
void ResetMode(){ //Reset the configuration mode after each reading
Serial.println("Re-initializing...");
nfc.ConfigMode(mode);
nfc.StartDiscovery(mode);
Expand Down
2 changes: 1 addition & 1 deletion examples/ISO15693_read_block/ISO15693_read_block.ino
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ RfIntf_t RfInterface; //Intarface t

uint8_t mode = 1; // modes: 1 = Reader/ Writer, 2 = Emulation

int ResetMode(){ //Reset the configuration mode after each reading
void ResetMode(){ //Reset the configuration mode after each reading
Serial.println("Re-initializing...");
nfc.ConfigMode(mode);
nfc.StartDiscovery(mode);
Expand Down
2 changes: 1 addition & 1 deletion examples/ISO15693_write_block/ISO15693_write_block.ino
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ void setup(){
Serial.println("Waiting for an ISO15693 Card ...");
}

int ResetMode(){ //Reset the configuration mode after each reading
void ResetMode(){ //Reset the configuration mode after each reading
Serial.println("Re-initializing...");
nfc.ConfigMode(mode);
nfc.StartDiscovery(mode);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ RfIntf_t RfInterface; //Intarface t

uint8_t mode = 1;
// modes: 1 = Reader/ Writer, 2 = Emulation
int ResetMode(){ //Reset the configuration mode after each reading
void ResetMode(){ //Reset the configuration mode after each reading
Serial.println("Re-initializing...");
nfc.ConfigMode(mode);
nfc.StartDiscovery(mode);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ RfIntf_t RfInterface; //Intarface t

uint8_t mode = 1; // modes: 1 = Reader/ Writer, 2 = Emulation

int ResetMode(){ //Reset the configuration mode after each reading
void ResetMode(){ //Reset the configuration mode after each reading
Serial.println("Re-initializing...");
nfc.ConfigMode(mode);
nfc.StartDiscovery(mode);
Expand Down
2 changes: 1 addition & 1 deletion examples/P2P_Discovery/P2P_Discovery.ino
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ RfIntf_t RfInterface; //Intarface t

uint8_t mode = 3; // modes: 1 = Reader/ Writer, 2 = Emulation, 3 = Peer to peer P2P

int ResetMode(){ //Reset the configuration mode after each reading
void ResetMode(){ //Reset the configuration mode after each reading
Serial.println("Re-initializing...");
nfc.ConfigMode(mode);
nfc.StartDiscovery(mode);
Expand Down
2 changes: 1 addition & 1 deletion src/Electroniccats_PN7150.cpp
100755 → 100644
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ uint8_t Electroniccats_PN7150::writeData(uint8_t txBuffer[], uint32_t txBufferLe
{
uint32_t nmbrBytesWritten = 0;
Wire.beginTransmission((uint8_t)_I2Caddress);
nmbrBytesWritten = Wire.write(txBuffer, txBufferLevel);
nmbrBytesWritten = Wire.write(txBuffer, (int)(txBufferLevel));
if (nmbrBytesWritten == txBufferLevel)
{
byte resultCode;
Expand Down

0 comments on commit 3d4a243

Please sign in to comment.