From 14ccd99f89720d5f22dea025d9303a7bca62625f Mon Sep 17 00:00:00 2001 From: EricB-ADI <122300463+EricB-ADI@users.noreply.github.com> Date: Mon, 23 Dec 2024 11:27:16 -0600 Subject: [PATCH] fix(BLE): WSF Assertion Checking for callback when not enabled. (#1314) --- Libraries/Cordio/wsf/sources/targets/baremetal/wsf_trace.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Libraries/Cordio/wsf/sources/targets/baremetal/wsf_trace.c b/Libraries/Cordio/wsf/sources/targets/baremetal/wsf_trace.c index ce049ee7a45..6f438940671 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; /*