mirror of
https://github.com/bluekitchen/btstack.git
synced 2025-03-25 16:43:28 +00:00
check control before using it
This commit is contained in:
parent
6ad890d319
commit
c30257d4f4
@ -462,7 +462,7 @@ int main (int argc, char * const * argv){
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
// init power management notifications
|
// init power management notifications
|
||||||
if (control->register_for_power_notifications){
|
if (control && control->register_for_power_notifications){
|
||||||
control->register_for_power_notifications(power_notification_callback);
|
control->register_for_power_notifications(power_notification_callback);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user