Skip to content

Commit

Permalink
fix &byte bug
Browse files Browse the repository at this point in the history
  • Loading branch information
Sleepychord authored and Michael Haberler committed Dec 13, 2023
1 parent dc4171f commit 5232e35
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion src/MFRC522Extended.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -836,7 +836,7 @@ MFRC522::StatusCode MFRC522Extended::TCL_Transceive(TagInfo *tag, byte *sendData
byte ackData[FIFO_SIZE];
byte ackDataSize = FIFO_SIZE;
byte linked = 0;
result = TCL_TransceiveRBlock(tag, true, ackData, &ackDataSize, linked);
result = TCL_TransceiveRBlock(tag, true, ackData, &ackDataSize, &linked);
if (result != STATUS_OK)
return result;

Expand Down Expand Up @@ -892,6 +892,7 @@ MFRC522::StatusCode MFRC522Extended::TCL_TransceiveRBlock(TagInfo *tag, bool ack

// Initialize the receiving data
// TODO Warning: Value escapes the local scope

in.inf.data = outBuffer;
in.inf.size = outBufferSize;

Expand Down
2 changes: 1 addition & 1 deletion src/MFRC522Extended.h
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ class MFRC522Extended : public MFRC522 {
/////////////////////////////////////////////////////////////////////////////////////
StatusCode TCL_Transceive(PcbBlock *send, PcbBlock *back);
StatusCode TCL_Transceive(TagInfo * tag, byte *sendData, byte sendLen, byte *backData = NULL, byte *backLen = NULL);
StatusCode TCL_TransceiveRBlock(TagInfo *tag, bool ack, byte *backData = NULL, byte *backLen = NULL, byte* linked = NULL);
StatusCode TCL_TransceiveRBlock(TagInfo *tag, bool ack, byte *backData = NULL, byte *backLen = NULL, byte* linked = nullptr);
StatusCode TCL_Deselect(TagInfo *tag);

/////////////////////////////////////////////////////////////////////////////////////
Expand Down

0 comments on commit 5232e35

Please sign in to comment.