mirror of
https://github.com/espressif/esp-nimble.git
synced 2026-08-10 12:07:55 +00:00
apps/bttester: fix start_direct_adv command
high_duty_cycle is defined in flags field that is 2 octet long, as first bit.
This commit is contained in:
committed by
Szymon Janc
parent
b4cf7fe978
commit
8da39bc40e
@@ -212,7 +212,7 @@ struct btp_gap_passkey_confirm_cmd {
|
||||
#define BTP_GAP_START_DIRECT_ADV 0x15
|
||||
struct btp_gap_start_direct_adv_cmd {
|
||||
ble_addr_t address;
|
||||
uint8_t high_duty;
|
||||
uint16_t options;
|
||||
} __packed;
|
||||
|
||||
#define BTP_GAP_CONN_PARAM_UPDATE 0x16
|
||||
|
||||
@@ -1577,7 +1577,7 @@ start_direct_adv(const void *cmd, uint16_t cmd_len,
|
||||
|
||||
SYS_LOG_DBG("");
|
||||
|
||||
adv_params.high_duty_cycle = cp->high_duty;
|
||||
adv_params.high_duty_cycle = cp->options & BIT(1);
|
||||
|
||||
err = ble_gap_adv_start(own_addr_type, &cp->address,
|
||||
BLE_HS_FOREVER, &adv_params,
|
||||
|
||||
Reference in New Issue
Block a user