From 8c38d8b9a331915fa08d5054350b77cceeb661ae Mon Sep 17 00:00:00 2001 From: Jacob Hageman Date: Wed, 29 Jul 2020 12:57:42 -0400 Subject: [PATCH] Fix #50, Use MsgId Equal API to compare --- fsw/src/to_lab_app.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fsw/src/to_lab_app.c b/fsw/src/to_lab_app.c index ea6b3af..21182ff 100644 --- a/fsw/src/to_lab_app.c +++ b/fsw/src/to_lab_app.c @@ -227,7 +227,7 @@ int32 TO_LAB_init(void) /* Subscriptions for TLM pipe*/ for (i = 0; (i < (sizeof(TO_LAB_Subs->Subs) / sizeof(TO_LAB_Subs->Subs[0]))); i++) { - if (CFE_SB_MsgIdToValue(TO_LAB_Subs->Subs[i].Stream) == TO_UNUSED) + if (CFE_SB_MsgId_Equal(TO_LAB_Subs->Subs[i].Stream, TO_UNUSED)) { /* Only process until MsgId TO_UNUSED is found*/ break;