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

Commit 2719a1f4 authored by Myles Watson's avatar Myles Watson
Browse files

Use CHECK() to verify that HIDL is installed

Test: build, boot test on angler
Change-Id: Ia64dcceedc233ef494ab0fdce7ee649e74fa45a0
parent 8f400ecf
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -26,7 +26,6 @@
#include <base/logging.h>
#include <hwbinder/ProcessState.h>

#include <assert.h>
#include <signal.h>
#include <string.h>
#include <sys/types.h>
@@ -245,7 +244,8 @@ static future_t* hci_module_start_up(void) {
                               event_packet_ready, NULL);

  btHci = IBluetoothHci::getService();
  assert(btHci != nullptr);
  // If android.hardware.bluetooth* is not found, Bluetooth can not continue.
  CHECK(btHci != nullptr);
  LOG_INFO(LOG_TAG, "%s: IBluetoothHci::getService() returned %p (%s)",
            __func__, btHci.get(), (btHci->isRemote() ? "remote" : "local"));