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:
Szymon Janc
2022-10-03 15:22:29 +02:00
parent 8f0ecadecc
commit 70117943f4
+1 -1
View File
@@ -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);
}