Skip to content

Commit 53cf5a8

Browse files
[nrf noup] nrfconnect/telink: Adapt to zcbor 0.8.1
New parameter to ZCBOR_STATE_D() Signed-off-by: Øyvind Rønningstad <oyvind.ronningstad@nordicsemi.no>
1 parent 4936f9f commit 53cf5a8

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/platform/nrfconnect/FactoryDataParser.c

+2-2
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ bool FindUserDataEntry(struct FactoryData * factoryData, const char * entry, voi
9292
return false;
9393
}
9494

95-
ZCBOR_STATE_D(states, MAX_FACTORY_DATA_NESTING_LEVEL - 1, factoryData->user.data, factoryData->user.len, 1);
95+
ZCBOR_STATE_D(states, MAX_FACTORY_DATA_NESTING_LEVEL - 1, factoryData->user.data, factoryData->user.len, 1, 0);
9696

9797
bool res = zcbor_map_start_decode(states);
9898
bool keyFound = false;
@@ -130,7 +130,7 @@ bool ParseFactoryData(uint8_t * buffer, uint16_t bufferSize, struct FactoryData
130130
}
131131

132132
memset(factoryData, 0, sizeof(*factoryData));
133-
ZCBOR_STATE_D(states, MAX_FACTORY_DATA_NESTING_LEVEL, buffer, bufferSize, 1);
133+
ZCBOR_STATE_D(states, MAX_FACTORY_DATA_NESTING_LEVEL, buffer, bufferSize, 1, 0);
134134

135135
bool res = zcbor_map_start_decode(states);
136136
struct zcbor_string currentString;

src/platform/telink/FactoryDataParser.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ static inline bool uint16_decode(zcbor_state_t * states, uint16_t * value)
4343
bool ParseFactoryData(uint8_t * buffer, uint16_t bufferSize, struct FactoryData * factoryData)
4444
{
4545
memset(factoryData, 0, sizeof(*factoryData));
46-
ZCBOR_STATE_D(states, MAX_FACTORY_DATA_NESTING_LEVEL, buffer, bufferSize, 1);
46+
ZCBOR_STATE_D(states, MAX_FACTORY_DATA_NESTING_LEVEL, buffer, bufferSize, 1, 0);
4747

4848
bool res = zcbor_map_start_decode(states);
4949
struct zcbor_string currentString;

0 commit comments

Comments
 (0)