From aa7f2ab42df902804c325a53be928a8e226fcf3b Mon Sep 17 00:00:00 2001 From: Mihai Ignat Date: Thu, 25 Apr 2024 14:43:20 +0300 Subject: [PATCH] [nxp][platform][k32w] BLE force disconnect handler calls API to allow low power --- src/platform/nxp/k32w/common/BLEManagerCommon.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/platform/nxp/k32w/common/BLEManagerCommon.cpp b/src/platform/nxp/k32w/common/BLEManagerCommon.cpp index 12b32b8e4b71b2..4c9048a3f68192 100644 --- a/src/platform/nxp/k32w/common/BLEManagerCommon.cpp +++ b/src/platform/nxp/k32w/common/BLEManagerCommon.cpp @@ -1075,6 +1075,10 @@ void BLEManagerCommon::HandleForceDisconnect() { ChipLogProgress(DeviceLayer, "Gap_Disconnect() failed."); } + +#if defined(chip_with_low_power) && (chip_with_low_power == 1) + PWR_AllowDeviceToSleep(); +#endif } /*******************************************************************************