mirror of
https://github.com/bluekitchen/btstack.git
synced 2025-01-05 21:59:45 +00:00
be more optimistic: if we cannot talk to SpringBoardAccess, assume system Bluetooth is off
This commit is contained in:
parent
54e60893df
commit
2139f61875
@ -82,6 +82,10 @@ int SBA_getBluetoothEnabled() {
|
||||
result = 0;
|
||||
}
|
||||
CFRelease(cfData);
|
||||
} else {
|
||||
// error talking to SpringBoardAccess
|
||||
// well, assume it's off and hope for the best
|
||||
result = 0;
|
||||
}
|
||||
return result;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user