Skip to content

Commit 81151de

Browse files
fix translation values
1 parent cda3bb8 commit 81151de

File tree

1 file changed

+8
-2
lines changed
  • features/FEATURE_BLE/targets/TARGET_STM/TARGET_STM32WB

1 file changed

+8
-2
lines changed

features/FEATURE_BLE/targets/TARGET_STM/TARGET_STM32WB/HCIDriver.cpp

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -134,8 +134,14 @@ class HCIDriver : public cordio::CordioHCIDriver {
134134

135135
static uint8_t convert_db_to_tx_power_index(int8_t level_db) {
136136
const int8_t conversion[] = {
137-
-40, -21 - 10 - 19, -18, -16, -15, -14, -13, -12, -11, -10, -9, -8,
138-
-7, -6, -5, -4, -3, -2, -2, -1, -1, 0, 0, 0, 1, 2, 3, 4, 5, 6,
137+
-40, -21, -20, -19,
138+
-18, -16, -15, -14,
139+
-13, -12, -11, -10,
140+
-9, -8, -7, -6,
141+
-5, -4, -3, -2,
142+
-1, -1, -1, -1,
143+
0, 0, 1, 2,
144+
3, 4, 5, 6
139145
};
140146

141147
uint8_t index;

0 commit comments

Comments
 (0)