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

Commit 4d857ad2 authored by Myles Watson's avatar Myles Watson
Browse files

RootCanal: Subtract one for shifting event masks

Test: cert/run --host
Bug: 199421920
Tag: #gd-refactor
Change-Id: I1ebe97c2addc7e0f12129cc1253a04474668bddf
parent 676acb8e
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -350,7 +350,7 @@ class DeviceProperties {
  }

  bool GetLeEventSupported(bluetooth::hci::SubeventCode subevent_code) const {
    return le_event_mask_ & (1u << static_cast<uint64_t>(subevent_code));
    return le_event_mask_ & (1u << (static_cast<uint64_t>(subevent_code) - 1));
  }

  uint64_t GetLeEventMask() const { return le_event_mask_; }