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

Commit 66f6fddc authored by Treehugger Robot's avatar Treehugger Robot Committed by Gerrit Code Review
Browse files

Merge "Signal id of zero is silently ignored per spec"

parents 5a2706fa bc660925
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -111,7 +111,7 @@ class ClassicSignallingManager {
  PendingCommand last_sent_command_;
  std::queue<PendingCommand> pending_commands_;
  os::Alarm alarm_;
  SignalId next_signal_id_ = kInvalidSignalId;
  SignalId next_signal_id_ = kInitialSignalId;
};

}  // namespace internal
+1 −0
Original line number Diff line number Diff line
@@ -48,6 +48,7 @@ struct SignalId {
};

constexpr SignalId kInvalidSignalId{0};
constexpr SignalId kInitialSignalId{1};

inline bool operator==(const SignalId& lhs, const SignalId& rhs) {
  return lhs.value_ == rhs.value_;