mirror of
https://github.com/espressif/esp-nimble.git
synced 2026-10-05 06:17:23 +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 */
|
/** Advertising PHY */
|
||||||
uint8_t phy;
|
uint8_t phy;
|
||||||
|
|
||||||
/** Transmit power Level */
|
/** Transmit power Level */
|
||||||
uint8_t transmit_power_level;
|
int8_t transmit_power_level;
|
||||||
|
|
||||||
/** Transmit Power Level Flag */
|
/** Transmit Power Level Flag */
|
||||||
uint8_t transmit_power_level_flag;
|
uint8_t transmit_power_level_flag;
|
||||||
|
|
||||||
/** Delta indicating change in transmit Power Level */
|
/** Delta indicating change in transmit Power Level */
|
||||||
uint8_t delta;
|
int8_t delta;
|
||||||
} transmit_power;
|
} transmit_power;
|
||||||
#endif
|
#endif
|
||||||
/**
|
/**
|
||||||
|
|||||||
@@ -1937,14 +1937,14 @@ struct ble_hci_ev_le_subev_path_loss_threshold {
|
|||||||
|
|
||||||
#define BLE_HCI_LE_SUBEV_TRANSMIT_POWER_REPORT (0x21)
|
#define BLE_HCI_LE_SUBEV_TRANSMIT_POWER_REPORT (0x21)
|
||||||
struct ble_hci_ev_le_subev_transmit_power_report {
|
struct ble_hci_ev_le_subev_transmit_power_report {
|
||||||
uint8_t subev_code;
|
uint8_t subev_code;
|
||||||
uint8_t status;
|
uint8_t status;
|
||||||
uint16_t conn_handle;
|
uint16_t conn_handle;
|
||||||
uint8_t reason;
|
uint8_t reason;
|
||||||
uint8_t phy;
|
uint8_t phy;
|
||||||
uint8_t transmit_power_level;
|
int8_t transmit_power_level;
|
||||||
uint8_t transmit_power_level_flag;
|
uint8_t transmit_power_level_flag;
|
||||||
uint8_t delta;
|
int8_t delta;
|
||||||
} __attribute__((packed));
|
} __attribute__((packed));
|
||||||
|
|
||||||
#define BLE_HCI_LE_SUBEV_BIGINFO_ADV_REPORT (0x22)
|
#define BLE_HCI_LE_SUBEV_BIGINFO_ADV_REPORT (0x22)
|
||||||
|
|||||||
Reference in New Issue
Block a user