Skip to content

Commit

Permalink
sys/include/net/coap.h: Add COAP_PAYLOAD_MARKER_SIZE
Browse files Browse the repository at this point in the history
Using a constant is easier than explaining where the magic 1 came from
in size estimations.
  • Loading branch information
maribu committed Jan 23, 2025
1 parent adecba2 commit 4d8d3cc
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions sys/include/net/coap.h
Original file line number Diff line number Diff line change
Expand Up @@ -539,6 +539,7 @@ typedef enum {
* @brief Marks the boundary between header and payload
*/
#define COAP_PAYLOAD_MARKER (0xFF)
#define COAP_PAYLOAD_MARKER_SIZE (1U) /**< Size of the payload marker */

/**
* @defgroup net_coap_conf CoAP compile configurations
Expand Down

0 comments on commit 4d8d3cc

Please sign in to comment.