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/08/31 07:26:28 UTC

[mynewt-nimble] branch master updated: nimble/phy/nrf: Fix setting -3dBm power on nRF5340

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


The following commit(s) were added to refs/heads/master by this push:
     new cc29e37c nimble/phy/nrf: Fix setting -3dBm power on nRF5340
cc29e37c is described below

commit cc29e37c9cee5a0ae74bd21ddcb34e6ed6ddce58
Author: Szymon Janc <sz...@codecoup.pl>
AuthorDate: Tue Aug 30 11:25:36 2022 +0200

    nimble/phy/nrf: Fix setting -3dBm power on nRF5340
    
    There was a typo which would result in -4 dBm being set instead.
---
 nimble/drivers/nrf5340/src/ble_phy.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/nimble/drivers/nrf5340/src/ble_phy.c b/nimble/drivers/nrf5340/src/ble_phy.c
index 7d0e3e1f..6999aee6 100644
--- a/nimble/drivers/nrf5340/src/ble_phy.c
+++ b/nimble/drivers/nrf5340/src/ble_phy.c
@@ -1817,7 +1817,7 @@ ble_phy_txpower_round(int dbm)
     }
 
     if (dbm >= (int8_t)RADIO_TXPOWER_TXPOWER_Neg3dBm) {
-        return (int8_t)RADIO_TXPOWER_TXPOWER_Neg4dBm;
+        return (int8_t)RADIO_TXPOWER_TXPOWER_Neg3dBm;
     }
 
     if (dbm >= (int8_t)RADIO_TXPOWER_TXPOWER_Neg4dBm) {