Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion library.properties
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name=STM32duino ST25DV
version=2.0.1
version=2.0.2
author=STMicroelectronics
maintainer=stm32duino
sentence=Allows controlling the NFC ST25DV
Expand Down
2 changes: 2 additions & 0 deletions src/libNDEF/NDEF_class.h
Original file line number Diff line number Diff line change
Expand Up @@ -190,6 +190,8 @@ class NDEF {
uint8_t NDEF_Record_Buffer [NDEF_RECORD_MAX_SIZE];
/** @brief Size of the buffer used when a record has to be prepared. */
uint32_t NDEF_Record_Buffer_size = NDEF_RECORD_MAX_SIZE;
/* Specific buffer to prepare the Alternative Carrier record */
uint8_t NDEF_AlternativeCarrier_Buffer[NDEF_AC_BUFFER_SIZE];

/* In case of smart Poster composed with different record, 3 records supported so far */
sRecordInfo_t SPRecordStruct1;
Expand Down
3 changes: 1 addition & 2 deletions src/libNDEF/lib_NDEF_Handover.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -405,8 +405,7 @@ uint16_t NDEF::NDEF_CreateHandover(Ndef_Handover_t *pHandover, sRecordInfo_t *p
*/
uint16_t NDEF::NDEF_AddAlternativeCarrier(Ndef_Handover_alternative_carrier_t *pAC, char *CarrierDataRef, char **AuxDataRefID, sRecordInfo_t *pRecord)
{
/* Specific buffer to prepare the Alternative Carrier record */
uint8_t NDEF_AlternativeCarrier_Buffer[NDEF_AC_BUFFER_SIZE];
memset(NDEF_AlternativeCarrier_Buffer, 0x0, ((sizeof(uint8_t))*NDEF_AC_BUFFER_SIZE));

/* check that there is enough space in the buffers */
pAC->ac_record.PayloadLength = NDEF_GetACDataLength(pAC, CarrierDataRef, AuxDataRefID);
Expand Down