updates for source sequence counter #714

Merged
gaisser merged 2 commits from eive/fsfw:source_seq_counter_update into development 2022-12-19 15:00:32 +01:00
1 changed files with 1 additions and 1 deletions
Showing only changes of commit ca80589233 - Show all commits

View File

@ -11,7 +11,7 @@ class SourceSequenceCounter {
SourceSequenceCounter(uint16_t initialSequenceCount = 0) : sequenceCount(initialSequenceCount) {}
void increment() { sequenceCount = (sequenceCount + 1) % (ccsds::LIMIT_SEQUENCE_COUNT); }
void decrement() { sequenceCount = (sequenceCount - 1) % (ccsds::LIMIT_SEQUENCE_COUNT); }
uint16_t get() { return this->sequenceCount; }
uint16_t get() const { return this->sequenceCount; }

This could be const

This could be const

get ist const now

get ist const now
void reset(uint16_t toValue = 0) { sequenceCount = toValue % (ccsds::LIMIT_SEQUENCE_COUNT); }
SourceSequenceCounter& operator++(int) {
this->increment();