hci: log cause for hardware error

This commit is contained in:
Matthias Ringwald 2016-07-14 14:13:58 +02:00
parent 9ecd1ba8ab
commit 313e5f9c03

View File

@ -1727,6 +1727,7 @@ static void event_handler(uint8_t *packet, int size){
break;
case HCI_EVENT_HARDWARE_ERROR:
log_error("Hardware Error: 0x%02x", packet[2]);
if (hci_stack->hardware_error_callback){
(*hci_stack->hardware_error_callback)();
} else {