mirror of
https://github.com/bluekitchen/btstack.git
synced 2025-03-24 13:43:38 +00:00
bt_control_t: drop hw error field
This commit is contained in:
parent
a9d55de2af
commit
46f70d846f
@ -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
|
||||
|
@ -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();
|
||||
|
Loading…
x
Reference in New Issue
Block a user