Update FSFW #24
|
@ -7,15 +7,13 @@ PeriodicOperationDivider::PeriodicOperationDivider(uint32_t divider,
|
|||
}
|
||||
|
||||
bool PeriodicOperationDivider::checkAndIncrement() {
|
||||
counter++;
|
||||
bool opNecessary = check();
|
||||
if(opNecessary) {
|
||||
if(resetAutomatically) {
|
||||
counter = 0;
|
||||
counter = 1;
|
||||
}
|
||||
return opNecessary;
|
||||
}
|
||||
|
||||
counter++;
|
||||
return opNecessary;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user