Skip to content
Snippets Groups Projects
Commit c5fe9fb4 authored by Gregory Nutt's avatar Gregory Nutt
Browse files

Use uint16_t vs uint8_t in the message queue structure if the max message size is > 128

parent 927ec9c7
No related branches found
No related tags found
No related merge requests found
......@@ -73,7 +73,11 @@ struct msgq_s
int16_t nconnect; /* Number of connections to message queue */
int16_t nwaitnotfull; /* Number tasks waiting for not full */
int16_t nwaitnotempty; /* Number tasks waiting for not empty */
#if CONFIG_MQ_MAXMSGSIZE < 256
uint8_t maxmsgsize; /* Max size of message in message queue */
#else
uint16_t maxmsgsize; /* Max size of message in message queue */
#endif
bool unlinked; /* true if the msg queue has been unlinked */
#ifndef CONFIG_DISABLE_SIGNALS
FAR struct mq_des *ntmqdes; /* Notification: Owning mqdes (NULL if none) */
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment