From 9fae15eb260bec57f94627f0e2c4ceb33b0f4d58 Mon Sep 17 00:00:00 2001 From: Anthony Doud Date: Fri, 7 Aug 2026 22:24:07 -0500 Subject: [PATCH] Initialize semaphore with braces in NimBLEUtils Fixes a connect crash in the client --- src/NimBLEUtils.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/NimBLEUtils.cpp b/src/NimBLEUtils.cpp index ec9767af..02f5b0a9 100644 --- a/src/NimBLEUtils.cpp +++ b/src/NimBLEUtils.cpp @@ -95,7 +95,7 @@ bool NimBLEUtils::taskWait(const TaskData& taskData, uint32_t timeout) { } if (taskData.m_pSem == nullptr) { - auto* sem = new ble_npl_sem; + auto* sem = new ble_npl_sem{}; if (ble_npl_sem_init(sem, 0) != BLE_NPL_OK) { NIMBLE_LOGE(LOG_TAG, "Failed to initialize semaphore for taskWait"); delete sem;