mirror of
https://github.com/bluekitchen/btstack.git
synced 2025-01-05 21:59:45 +00:00
test/auto-pts: disable advertisements on power off
This commit is contained in:
parent
dbd5dcc31a
commit
6edb4dfb63
@ -786,6 +786,7 @@ static void btp_gap_handler(uint8_t opcode, uint8_t controller_index, uint16_t l
|
||||
if (powered){
|
||||
hci_power_control(HCI_POWER_ON);
|
||||
} else {
|
||||
gap_advertisements_enable(0);
|
||||
hci_power_control(HCI_POWER_OFF);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user