bt_control_t: drop hw error field

This commit is contained in:
Matthias Ringwald 2016-01-22 16:38:35 +01:00
parent a9d55de2af
commit 46f70d846f
2 changed files with 0 additions and 6 deletions

View File

@ -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

View File

@ -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();