From 4d8d3cc9dc28e4f9df22127b3e650d3b5cde9192 Mon Sep 17 00:00:00 2001 From: Marian Buschsieweke Date: Thu, 23 Jan 2025 11:38:07 +0100 Subject: [PATCH] sys/include/net/coap.h: Add COAP_PAYLOAD_MARKER_SIZE Using a constant is easier than explaining where the magic 1 came from in size estimations. --- sys/include/net/coap.h | 1 + 1 file changed, 1 insertion(+) diff --git a/sys/include/net/coap.h b/sys/include/net/coap.h index 275510463d51..06fe6b9b5df8 100644 --- a/sys/include/net/coap.h +++ b/sys/include/net/coap.h @@ -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