You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mynewt.apache.org by ja...@apache.org on 2022/10/03 13:22:39 UTC
[mynewt-nimble] 04/08: nimble/ll: Fix not rounding TX power when restoring defaults
This is an automated email from the ASF dual-hosted git repository.
janc pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/mynewt-nimble.git
commit 70117943f4afeba0245a84a38d7a42f194280e4f
Author: Szymon Janc <sz...@codecoup.pl>
AuthorDate: Wed Sep 28 14:38:40 2022 +0200
nimble/ll: Fix not rounding TX power when restoring defaults
HCI VS command didn't round default TX power value.
---
nimble/controller/src/ble_ll_hci_vs.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/nimble/controller/src/ble_ll_hci_vs.c b/nimble/controller/src/ble_ll_hci_vs.c
index 8cbf3dca..93ec2e85 100644
--- a/nimble/controller/src/ble_ll_hci_vs.c
+++ b/nimble/controller/src/ble_ll_hci_vs.c
@@ -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);
}