From 9ab278d19e66ccef021b199dbb6146c9113809fb Mon Sep 17 00:00:00 2001 From: Johanna Amann Date: Fri, 2 Sep 2022 15:27:23 +0100 Subject: [PATCH] Fix getPower return value Power level -3 returned the wrong value. --- src/NimBLEDevice.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/NimBLEDevice.cpp b/src/NimBLEDevice.cpp index a7b6a55..6ae9a77 100644 --- a/src/NimBLEDevice.cpp +++ b/src/NimBLEDevice.cpp @@ -407,7 +407,7 @@ int NimBLEDevice::getPower(esp_ble_power_type_t powerType) { case ESP_PWR_LVL_N6: return -6; case ESP_PWR_LVL_N3: - return -6; + return -3; case ESP_PWR_LVL_N0: return 0; case ESP_PWR_LVL_P3: