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

Commit 32097dfa authored by Treehugger Robot's avatar Treehugger Robot Committed by Gerrit Code Review
Browse files

Merge "RootCanal: Subtract one for shifting event masks"

parents 81b326fe 4d857ad2
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -350,7 +350,7 @@ class DeviceProperties {
  }
  }


  bool GetLeEventSupported(bluetooth::hci::SubeventCode subevent_code) const {
  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_; }
  uint64_t GetLeEventMask() const { return le_event_mask_; }