Skip to content

Commit 70cc2d1

Browse files
Replaced DEBUG_PRINTLN() calls in u_tx_flags.c with new macros. (#342)
Co-authored-by: Caio DaSilva <145620095+caiodasilva2005@users.noreply.github.com>
1 parent d55b43e commit 70cc2d1

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

threadX/src/u_tx_flags.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ TX_EVENT_FLAGS_GROUP event_flags;
77
uint8_t flags_init()
88
{
99
if (tx_event_flags_create(&event_flags, "Thread Flags")) {
10-
PRINTLN_INFO("Failed to initialize flag event groups.");
10+
PRINTLN_ERROR("Failed to initialize flag event groups.");
1111
return U_ERROR;
1212
}
1313
PRINTLN_INFO("Ran flags_init().");
@@ -17,7 +17,7 @@ uint8_t flags_init()
1717
uint8_t set_flag(ULONG flag)
1818
{
1919
if (tx_event_flags_set(&event_flags, flag, TX_OR)) {
20-
PRINTLN_INFO("Failed to set flag %d.", flag);
20+
PRINTLN_ERROR("Failed to set flag %d.", flag);
2121
return U_ERROR;
2222
}
2323
return U_SUCCESS;
@@ -28,7 +28,7 @@ uint8_t get_flag(ULONG flag, ULONG timeout)
2828
ULONG result_flags;
2929
if (tx_event_flags_get(&event_flags, flag, TX_OR_CLEAR, &result_flags,
3030
timeout)) {
31-
PRINTLN_INFO("Failed to get flag %d.", flag);
31+
PRINTLN_ERROR("Failed to get flag %d.", flag);
3232
return U_ERROR;
3333
}
3434
return U_SUCCESS;

0 commit comments

Comments
 (0)