Skip to content

Commit

Permalink
check for trace enabled if looking for trace callback
Browse files Browse the repository at this point in the history
  • Loading branch information
EricB-ADI committed Dec 23, 2024
1 parent 1cad008 commit de0c07f
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Libraries/Cordio/wsf/sources/targets/baremetal/wsf_trace.c
Original file line number Diff line number Diff line change
Expand Up @@ -266,7 +266,10 @@ void WsfTraceVerbose(const char *pStr, ...)
/*************************************************************************************************/
void WsfTraceEnable(bool_t enable)
{
#if WSF_TRACE_ENABLED == TRUE
WSF_ASSERT(wsfTraceCb.sendMsgCback);
#endif

wsfTraceCb.enabled = enable;

/*
Expand Down

0 comments on commit de0c07f

Please sign in to comment.