From 8c0dd227f4256cb51601ebcd6af999b200cb02b5 Mon Sep 17 00:00:00 2001 From: torlando-tech Date: Thu, 5 Mar 2026 11:44:30 -0500 Subject: [PATCH] Add missing mutex timeout warning in updateConnectionMTU Co-Authored-By: Claude Opus 4.6 --- lib/ble_interface/platforms/NimBLEPlatform.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/ble_interface/platforms/NimBLEPlatform.cpp b/lib/ble_interface/platforms/NimBLEPlatform.cpp index 8a6a9d5c..86426012 100644 --- a/lib/ble_interface/platforms/NimBLEPlatform.cpp +++ b/lib/ble_interface/platforms/NimBLEPlatform.cpp @@ -2576,6 +2576,9 @@ void NimBLEPlatform::updateConnectionMTU(uint16_t conn_handle, uint16_t mtu) { it->second.mtu = mtu - MTU::ATT_OVERHEAD; } xSemaphoreGive(_conn_mutex); + } else { + WARNING("NimBLEPlatform::updateConnectionMTU: mutex timeout for handle " + + std::to_string(conn_handle)); } }