diff --git a/Libraries/Cordio/wsf/sources/targets/baremetal/wsf_trace.c b/Libraries/Cordio/wsf/sources/targets/baremetal/wsf_trace.c index ce049ee7a4..6f43894067 100644 --- a/Libraries/Cordio/wsf/sources/targets/baremetal/wsf_trace.c +++ b/Libraries/Cordio/wsf/sources/targets/baremetal/wsf_trace.c @@ -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; /*