Skip to content

Commit

Permalink
fix(BLE): WSF Assertion Checking for callback when not enabled. (#1314)
Browse files Browse the repository at this point in the history
  • Loading branch information
EricB-ADI authored Dec 23, 2024
1 parent 1cad008 commit 14ccd99
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 14ccd99

Please sign in to comment.