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

Commit 63cbdff6 authored by Myles Watson's avatar Myles Watson
Browse files

Be more explicit on unexpected HCI events

Bug: 210673442
Test: cert/run
Tag: #gd-refactor
Change-Id: I3ddd5382589d2a8a95b6a306e118b77242d34dcd
parent ca7744b8
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 {