diff --git a/src/btstack_control.h b/src/btstack_control.h index a5c9f5a21..905839e11 100644 --- a/src/btstack_control.h +++ b/src/btstack_control.h @@ -65,10 +65,6 @@ typedef struct { int (*sleep)(void *config); // <-- put BT module to sleep - only to be called after ON int (*wake) (void *config); // <-- wake BT module from sleep - only to be called after SLEEP void (*register_for_power_notifications)(void (*cb)(POWER_NOTIFICATION_t event)); - - // move to hci.h - void (*hw_error)(void); - } bt_control_t; #if defined __cplusplus diff --git a/src/hci.c b/src/hci.c index 879f7dfaa..0ff320bb9 100644 --- a/src/hci.c +++ b/src/hci.c @@ -1688,8 +1688,6 @@ static void event_handler(uint8_t *packet, int size){ case HCI_EVENT_HARDWARE_ERROR: if (hci_stack->hardware_error_callback){ (*hci_stack->hardware_error_callback)(); - } else if(hci_stack->control && hci_stack->control->hw_error){ - (*hci_stack->control->hw_error)(); } else { // if no special requests, just reboot stack hci_power_control_off();