From 910a6a33ac5116c7962e771b83262d84c0a17a11 Mon Sep 17 00:00:00 2001 From: Gabriel Cox Date: Wed, 17 Jul 2024 14:40:56 -0700 Subject: [PATCH] Corrected docblock to match implementation dockblock now shows that odid_message_process_pack returns message pack length and < 0 in error rather than 0 on success. --- libopendroneid/opendroneid.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libopendroneid/opendroneid.h b/libopendroneid/opendroneid.h index d329807..1328593 100644 --- a/libopendroneid/opendroneid.h +++ b/libopendroneid/opendroneid.h @@ -603,7 +603,7 @@ typedef struct __attribute__((__packed__)) ODID_MessagePack_encoded { // Byte 1 - 2 uint8_t SingleMessageSize; - uint8_t MsgPackSize; + uint8_t MsgPackSize; // no of messages in pack // Byte 3 - 227 ODID_Message_encoded Messages[ODID_PACK_MAX_MESSAGES]; @@ -729,7 +729,7 @@ int odid_wifi_build_message_pack_beacon_frame(ODID_UAS_Data *UAS_Data, char *mac * @pack: buffer space to read from * @buflen: length of buffer space * - * Returns 0 on success + * Returns message pack length on success, or < 0 on error. */ int odid_message_process_pack(ODID_UAS_Data *UAS_Data, uint8_t *pack, size_t buflen);