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

Commit 12290aba authored by Treehugger Robot's avatar Treehugger Robot Committed by Automerger Merge Worker
Browse files

Merge "RootCanal: Subtract one for shifting event masks" am: 32097dfa

Original change: https://android-review.googlesource.com/c/platform/system/bt/+/1842585

Change-Id: I31396480c2710a48fa455acc714a3c5adbda56e8
parents 7d80a37e 32097dfa
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_; }