Update EIVE FSFW #14

Merged
meierj merged 6 commits from mueller/master into eive/develop 2021-09-20 18:32:48 +02:00
8 changed files with 912 additions and 60 deletions
Showing only changes of commit 7d44aab98e - Show all commits

View File

@ -7,15 +7,13 @@ PeriodicOperationDivider::PeriodicOperationDivider(uint32_t divider,
} }
bool PeriodicOperationDivider::checkAndIncrement() { bool PeriodicOperationDivider::checkAndIncrement() {
counter++;
bool opNecessary = check(); bool opNecessary = check();
if(opNecessary) { if(opNecessary) {
if(resetAutomatically) { if(resetAutomatically) {
counter = 0; counter = 1;
} }
return opNecessary;
} }
counter++;
return opNecessary; return opNecessary;
} }