Skip to content

Commit 6a1a388

Browse files
authored
Merge pull request #26 from cparata/main
Fix warnings
2 parents 64c79f1 + 84fddf3 commit 6a1a388

File tree

3 files changed

+4
-3
lines changed

3 files changed

+4
-3
lines changed

library.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
name=STM32duino ST25DV
2-
version=2.0.1
2+
version=2.0.2
33
author=STMicroelectronics
44
maintainer=stm32duino
55
sentence=Allows controlling the NFC ST25DV

src/libNDEF/NDEF_class.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -190,6 +190,8 @@ class NDEF {
190190
uint8_t NDEF_Record_Buffer [NDEF_RECORD_MAX_SIZE];
191191
/** @brief Size of the buffer used when a record has to be prepared. */
192192
uint32_t NDEF_Record_Buffer_size = NDEF_RECORD_MAX_SIZE;
193+
/* Specific buffer to prepare the Alternative Carrier record */
194+
uint8_t NDEF_AlternativeCarrier_Buffer[NDEF_AC_BUFFER_SIZE];
193195

194196
/* In case of smart Poster composed with different record, 3 records supported so far */
195197
sRecordInfo_t SPRecordStruct1;

src/libNDEF/lib_NDEF_Handover.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -405,8 +405,7 @@ uint16_t NDEF::NDEF_CreateHandover(Ndef_Handover_t *pHandover, sRecordInfo_t *p
405405
*/
406406
uint16_t NDEF::NDEF_AddAlternativeCarrier(Ndef_Handover_alternative_carrier_t *pAC, char *CarrierDataRef, char **AuxDataRefID, sRecordInfo_t *pRecord)
407407
{
408-
/* Specific buffer to prepare the Alternative Carrier record */
409-
uint8_t NDEF_AlternativeCarrier_Buffer[NDEF_AC_BUFFER_SIZE];
408+
memset(NDEF_AlternativeCarrier_Buffer, 0x0, ((sizeof(uint8_t))*NDEF_AC_BUFFER_SIZE));
410409

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

0 commit comments

Comments
 (0)