Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 89c1e989 authored by Treehugger Robot's avatar Treehugger Robot Committed by Automerger Merge Worker
Browse files

Merge "Be more explicit on unexpected HCI events" am: 71d6b747 am: 54968af6

Original change: https://android-review.googlesource.com/c/platform/packages/modules/Bluetooth/+/1937116

Change-Id: I23fff1953260e9d1babd539d36020f05e5b1d3b6
parents 6ae6bcfd 54968af6
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -328,6 +328,11 @@ struct HciLayer::impl {
  void on_hci_event(EventView event) {
    ASSERT(event.IsValid());
    if (command_queue_.empty()) {
      auto event_code = event.GetEventCode();
      ASSERT_LOG(
          event_code != EventCode::COMMAND_COMPLETE && event_code != EventCode::COMMAND_STATUS,
          "Received %s without a waiting command (is the HAL sending commands, but not handling the events?)",
          EventCodeText(event_code).c_str());
      std::unique_ptr<CommandView> no_waiting_command{nullptr};
      log_hci_event(no_waiting_command, event, module_.GetDependency<storage::StorageModule>());
    } else {