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

Commit fedbfc0b 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 am:...

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

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

Change-Id: I9b47aab475f9c54a7ea54bf556b8106ecd758ea7
parents c359f174 e14ed9eb
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_; }