fix disableSystemBluetoothBTstackManager: delegate call

This commit is contained in:
matthias.ringwald 2010-03-29 20:07:50 +00:00
parent e394daaaee
commit 09b3a72c0f

View File

@ -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
if ( state == kW4SysBTState) {
if (_delegate == nil
|| ![_delegate respondsToSelector:@selector(disableSystemBluetoothBTstackManager)]
|| [_delegate disableSystemBluetoothBTstackManager]){
|| ![_delegate respondsToSelector:@selector(disableSystemBluetoothBTstackManager:)]
|| [_delegate disableSystemBluetoothBTstackManager:self]){
state = kW4SysBTDisabled;
bt_send_cmd(&btstack_set_system_bluetooth_enabled, 0);
} else {