monitor: Fix LE Read Transmit Power Command deconding
PATCH 1/1 monitor: Fix LE Read Transmit Power Command deconding
Min and max TX power are signed intergers.
--- monitor/bt.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
monitor/bt.h +2 -2
@@ -2359,8 +2359,8 @@ struct bt_hci_rsp_le_read_dev_periodic_adv_list_size {#define BT_HCI_CMD_LE_READ_TX_POWER 0x204bstruct bt_hci_rsp_le_read_tx_power {uint8_t status; -uint8_t min_tx_power; -uint8_t max_tx_power; +int8_t min_tx_power; +int8_t max_tx_power; } __attribute__ ((packed));#define BT_HCI_CMD_LE_READ_RF_PATH_COMPENSATION 0x204c
Signature · 1 line
2.20.1
Szymon Janc
AppliedQuoted 10 lines · On Friday, 15 February 2019 13:58:28 CET Szymon Janc wrote:
Min and max TX power are signed intergers.
--- monitor/bt.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)monitor/bt.h +0
-0
monitor/bt.h struct bt_hci_rsp_le_read_dev_periodic_adv_list_size { · line 2366
Quoted 10 lines
monitor/bt.h +2
-2@@ -2359,8 +2359,8 @@ struct bt_hci_rsp_le_read_dev_periodic_adv_list_size {#define BT_HCI_CMD_LE_READ_TX_POWER 0x204bstruct bt_hci_rsp_le_read_tx_power {uint8_t status; -uint8_t min_tx_power; -uint8_t max_tx_power; +int8_t min_tx_power; +int8_t max_tx_power; } __attribute__ ((packed));#define BT_HCI_CMD_LE_READ_RF_PATH_COMPENSATION 0x204c
Applied.
Signature · 2 lines
pozdrawiam Szymon Janc