Skip to content

Commit

Permalink
Fixed initialization of payload
Browse files Browse the repository at this point in the history
  • Loading branch information
gabryelreyes committed Nov 22, 2023
1 parent 4188420 commit 25e7b2d
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/SerialMuxProtCommon.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -172,11 +172,11 @@ enum COMMANDS : uint8_t
*/
typedef struct _ControlChannelPayload
{
uint8_t commandByte; /**< Command Byte */
uint32_t timestamp; /**< Timestamp */
uint8_t channelNumber; /**< Channel Number */
char channelName[CHANNEL_NAME_MAX_LEN]; /**< Channel Name */
} __attribute__((packed)) ControlChannelPayload; /**< ControlChannelPayload */
uint8_t commandByte = 0U; /**< Command Byte */
uint32_t timestamp = 0U; /**< Timestamp */
uint8_t channelNumber = 0U; /**< Channel Number */
char channelName[CHANNEL_NAME_MAX_LEN] = {0U}; /**< Channel Name */
} __attribute__((packed)) ControlChannelPayload; /**< ControlChannelPayload */

#endif /* SERIALMUXPROT_COMMON_H_ */
/** @} */

0 comments on commit 25e7b2d

Please sign in to comment.