Fix getPower return value

Power level -3 returned the wrong value.
This commit is contained in:
Johanna Amann 2022-09-02 15:27:23 +01:00 committed by h2zero
parent efa48c0d57
commit 9ab278d19e

View file

@ -407,7 +407,7 @@ int NimBLEDevice::getPower(esp_ble_power_type_t powerType) {
case ESP_PWR_LVL_N6: case ESP_PWR_LVL_N6:
return -6; return -6;
case ESP_PWR_LVL_N3: case ESP_PWR_LVL_N3:
return -6; return -3;
case ESP_PWR_LVL_N0: case ESP_PWR_LVL_N0:
return 0; return 0;
case ESP_PWR_LVL_P3: case ESP_PWR_LVL_P3: