Skip to content

Commit

Permalink
JSON: fix double {} on JSON_VAL_sid_msg_desc
Browse files Browse the repository at this point in the history
remove invalid JSON_OBJ wrapper in JSON_VAL_sid_msg_desc

Signed-off-by: Robert Gałat <[email protected]>
  • Loading branch information
RobertGalatNordic committed Dec 14, 2023
1 parent 42ed33d commit bed2541
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions utils/include/sidTypes2Json.h
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
* @result result of this function can be passed to printf like function, or other JSON macro
*/
#define JSON_VAL_sid_msg_desc(name, msg_desc, msg_desc_attr_rx) \
JSON_OBJ(JSON_NAME( \
JSON_NAME( \
name, \
JSON_OBJ(JSON_LIST_7( \
JSON_NAME("link_type", JSON_INT(msg_desc->link_type)), \
Expand Down Expand Up @@ -91,7 +91,7 @@
JSON_INT( \
msg_desc->msg_desc_attr \
.tx_attr \
.ttl_in_seconds))))))))))))
.ttl_in_seconds)))))))))))

/**
* @brief prepare printf formater and arguments to print sid_error_t object
Expand Down

0 comments on commit bed2541

Please sign in to comment.