Skip to content

Commit 63ddb71

Browse files
oyvindronningstadnordicjm
authored andcommitted
boot_serial: Adapt to API changes in zcbor 0.8.0
New arguments in zcbor_new_state are set to NULL/0 because they are only needed when using the zcbor_unordered_map API. Signed-off-by: Øyvind Rønningstad <[email protected]>
1 parent a899390 commit 63ddb71

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

boot/boot_serial/src/boot_serial.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -439,7 +439,7 @@ bs_set(char *buf, int len)
439439
#endif
440440

441441
zcbor_state_t zsd[4];
442-
zcbor_new_state(zsd, sizeof(zsd) / sizeof(zcbor_state_t), (uint8_t *)buf, len, 1);
442+
zcbor_new_state(zsd, sizeof(zsd) / sizeof(zcbor_state_t), (uint8_t *)buf, len, 1, NULL, 0);
443443

444444
struct zcbor_map_decode_key_val image_set_state_decode[] = {
445445
ZCBOR_MAP_DECODE_KEY_DECODER("confirm", zcbor_bool_decode, &confirm),
@@ -657,7 +657,7 @@ bs_upload(char *buf, int len)
657657
#endif
658658

659659
zcbor_state_t zsd[4];
660-
zcbor_new_state(zsd, sizeof(zsd) / sizeof(zcbor_state_t), (uint8_t *)buf, len, 1);
660+
zcbor_new_state(zsd, sizeof(zsd) / sizeof(zcbor_state_t), (uint8_t *)buf, len, 1, NULL, 0);
661661

662662
struct zcbor_map_decode_key_val image_upload_decode[] = {
663663
ZCBOR_MAP_DECODE_KEY_DECODER("image", zcbor_uint32_decode, &img_num_tmp),
@@ -910,7 +910,7 @@ bs_echo(char *buf, int len)
910910
uint32_t rc = MGMT_ERR_EINVAL;
911911

912912
zcbor_state_t zsd[4];
913-
zcbor_new_state(zsd, sizeof(zsd) / sizeof(zcbor_state_t), (uint8_t *)buf, len, 1);
913+
zcbor_new_state(zsd, sizeof(zsd) / sizeof(zcbor_state_t), (uint8_t *)buf, len, 1, NULL, 0);
914914

915915
if (!zcbor_map_start_decode(zsd)) {
916916
goto out;

0 commit comments

Comments
 (0)