mirror of
https://github.com/espressif/esp-idf.git
synced 2024-10-05 20:47:46 -04:00
fix (nimble): Fix data type of power level and delta to handle negative values
This commit is contained in:
parent
6eda92653c
commit
b926bf5048
@ -1 +1 @@
|
||||
Subproject commit 528a67f4e73f9521609879587a1d7d2180e18372
|
||||
Subproject commit e4a61068854850910155a3f5950b10791c3d8381
|
@ -1863,9 +1863,9 @@ struct ble_hci_ev_le_subev_transmit_power_report {
|
||||
uint16_t conn_handle;
|
||||
uint8_t reason;
|
||||
uint8_t phy;
|
||||
uint8_t transmit_power_level;
|
||||
int8_t transmit_power_level;
|
||||
uint8_t transmit_power_level_flag;
|
||||
uint8_t delta;
|
||||
int8_t delta;
|
||||
} __attribute__((packed));
|
||||
|
||||
#define BLE_HCI_LE_SUBEV_BIGINFO_ADV_REPORT (0x22)
|
||||
|
@ -808,7 +808,7 @@ blecent_gap_event(struct ble_gap_event *event, void *arg)
|
||||
#if MYNEWT_VAL(BLE_POWER_CONTROL)
|
||||
case BLE_GAP_EVENT_TRANSMIT_POWER:
|
||||
MODLOG_DFLT(INFO, "Transmit power event : status=%d conn_handle=%d reason=%d "
|
||||
"phy=%d power_level=%x power_level_flag=%d delta=%d",
|
||||
"phy=%d power_level=%d power_level_flag=%d delta=%d",
|
||||
event->transmit_power.status,
|
||||
event->transmit_power.conn_handle,
|
||||
event->transmit_power.reason,
|
||||
|
Loading…
Reference in New Issue
Block a user