Skip to content

Commit

Permalink
Corrected docblock to match implementation
Browse files Browse the repository at this point in the history
dockblock now shows that odid_message_process_pack returns message pack length and < 0 in error rather than 0 on success.
  • Loading branch information
gabrielcox committed Jul 17, 2024
1 parent 6a03545 commit 910a6a3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions libopendroneid/opendroneid.h
Original file line number Diff line number Diff line change
Expand Up @@ -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];
Expand Down Expand Up @@ -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);

Expand Down

0 comments on commit 910a6a3

Please sign in to comment.