mirror of
https://github.com/bluekitchen/btstack.git
synced 2025-01-26 12:35:25 +00:00
fix disableSystemBluetoothBTstackManager: delegate call
This commit is contained in:
parent
e394daaaee
commit
09b3a72c0f
@ -277,8 +277,8 @@ static void packet_handler(uint8_t packet_type, uint16_t channel, uint8_t *packe
|
|||||||
// system bt on - first time try to disable it
|
// system bt on - first time try to disable it
|
||||||
if ( state == kW4SysBTState) {
|
if ( state == kW4SysBTState) {
|
||||||
if (_delegate == nil
|
if (_delegate == nil
|
||||||
|| ![_delegate respondsToSelector:@selector(disableSystemBluetoothBTstackManager)]
|
|| ![_delegate respondsToSelector:@selector(disableSystemBluetoothBTstackManager:)]
|
||||||
|| [_delegate disableSystemBluetoothBTstackManager]){
|
|| [_delegate disableSystemBluetoothBTstackManager:self]){
|
||||||
state = kW4SysBTDisabled;
|
state = kW4SysBTDisabled;
|
||||||
bt_send_cmd(&btstack_set_system_bluetooth_enabled, 0);
|
bt_send_cmd(&btstack_set_system_bluetooth_enabled, 0);
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user