Skip to content

Commit

Permalink
Fix #707, Resolve highest MsgID of 0xFFFF bug
Browse files Browse the repository at this point in the history
Changes Message Key from uint16 to uint32 to avoid rollover
  • Loading branch information
skliper committed May 19, 2020
1 parent 95f34d2 commit 71f3242
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion cmake/sample_defs/cpu1_platform_cfg.h
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,8 @@
** The recommended case to to have this value the same across all mission platforms
**
** \par Limits
** This parameter has a lower limit of 1 and an upper limit of 0xFFFF.
** This parameter has a lower limit of 1 and an upper limit of 0xFFFF. Note there
** is one MsgId value reserved as invalid, so the table is this size + 1.
*/
#define CFE_PLATFORM_SB_HIGHEST_VALID_MSGID 0x1FFF

Expand Down
2 changes: 1 addition & 1 deletion fsw/cfe-core/src/sb/cfe_sb_priv.h
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@
** be used directly, except by internal table lookups.
**
*/
typedef uint16 CFE_SB_MsgKey_Atom_t;
typedef uint32 CFE_SB_MsgKey_Atom_t;

/******************************************************************************
** Typedef: CFE_SB_MsgKey_t
Expand Down

0 comments on commit 71f3242

Please sign in to comment.