mirror of
https://github.com/espressif/esp-nimble.git
synced 2026-09-19 07:29:54 +00:00
nimble/host: Fix data type of power level and delta to handle negative values
This commit is contained in:
committed by
Andrzej Kaczmarek
parent
8074802c11
commit
b2ebf7630d
@@ -1068,14 +1068,14 @@ struct ble_gap_event {
|
||||
/** Advertising PHY */
|
||||
uint8_t phy;
|
||||
|
||||
/** Transmit power Level */
|
||||
uint8_t transmit_power_level;
|
||||
/** Transmit power Level */
|
||||
int8_t transmit_power_level;
|
||||
|
||||
/** Transmit Power Level Flag */
|
||||
uint8_t transmit_power_level_flag;
|
||||
|
||||
/** Delta indicating change in transmit Power Level */
|
||||
uint8_t delta;
|
||||
/** Delta indicating change in transmit Power Level */
|
||||
int8_t delta;
|
||||
} transmit_power;
|
||||
#endif
|
||||
/**
|
||||
|
||||
@@ -1937,14 +1937,14 @@ struct ble_hci_ev_le_subev_path_loss_threshold {
|
||||
|
||||
#define BLE_HCI_LE_SUBEV_TRANSMIT_POWER_REPORT (0x21)
|
||||
struct ble_hci_ev_le_subev_transmit_power_report {
|
||||
uint8_t subev_code;
|
||||
uint8_t status;
|
||||
uint8_t subev_code;
|
||||
uint8_t status;
|
||||
uint16_t conn_handle;
|
||||
uint8_t reason;
|
||||
uint8_t phy;
|
||||
uint8_t transmit_power_level;
|
||||
uint8_t transmit_power_level_flag;
|
||||
uint8_t delta;
|
||||
uint8_t reason;
|
||||
uint8_t phy;
|
||||
int8_t transmit_power_level;
|
||||
uint8_t transmit_power_level_flag;
|
||||
int8_t delta;
|
||||
} __attribute__((packed));
|
||||
|
||||
#define BLE_HCI_LE_SUBEV_BIGINFO_ADV_REPORT (0x22)
|
||||
|
||||
Reference in New Issue
Block a user