Fix getPower return value

Power level -3 returned the wrong value.
This commit is contained in:
Jason2866 2022-10-11 17:50:34 +02:00 committed by GitHub
parent ce46d0a089
commit 77f434577f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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: