Skip to content

Commit

Permalink
refact: ReadURI to use common buffer
Browse files Browse the repository at this point in the history
  • Loading branch information
maihde committed Jul 23, 2023
1 parent 5b20aae commit 82f5f5c
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions src/ST25DVSensor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -67,15 +67,8 @@ int ST25DV::readURI(String *s)
uint16_t ret;
sURI_Info uri = {"", "", ""};
sRecordInfo_t recordInfo;
uint8_t NDEF_Buffer[100];

// increase buffer size for bigger messages
ret = ndef.NDEF_ReadNDEF(NDEF_Buffer);
if (ret) {
return ret;
}

ret = ndef.NDEF_IdentifyBuffer(&recordInfo, NDEF_Buffer);
ret = ndef.NDEF_IdentifyNDEF(&recordInfo);
if (ret) {
return ret;
}
Expand Down

0 comments on commit 82f5f5c

Please sign in to comment.