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

Commit bc660925 authored by Chris Manton's avatar Chris Manton
Browse files

Signal id of zero is silently ignored per spec

Must initialize with a valid signal id.

Bug: 141758481
Test: Verified connection response recieved with non-zero signal id
Change-Id: Icf0ca6a3404759da3734c2d760683a71063340a4
parent 046dd002
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_;