mirror of
https://github.com/espressif/esp-nimble.git
synced 2026-10-25 06:53:32 +00:00
nimble/ll: Fix not rounding TX power when restoring defaults
HCI VS command didn't round default TX power value.
This commit is contained in:
@@ -124,7 +124,7 @@ ble_ll_hci_vs_set_tx_power(uint16_t ocf, const uint8_t *cmdbuf, uint8_t cmdlen,
|
||||
|
||||
if (cmd->tx_power == 127) {
|
||||
/* restore reset default */
|
||||
g_ble_ll_tx_power = MYNEWT_VAL(BLE_LL_TX_PWR_DBM);
|
||||
g_ble_ll_tx_power = ble_phy_tx_power_round(MYNEWT_VAL(BLE_LL_TX_PWR_DBM));
|
||||
} else {
|
||||
g_ble_ll_tx_power = ble_phy_tx_power_round(cmd->tx_power);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user