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

Commit f242163f 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:...

Merge "Be more explicit on unexpected HCI events" am: 71d6b747 am: 54968af6 am: 89c1e989 am: 3ec91f8d

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

Change-Id: I626b0b4d44cfdf9f400a2c8e8435b56d4c7f9f14
parents 4175bb90 3ec91f8d
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 {