warning removed from osal
This commit is contained in:
parent
8ad30d489a
commit
7b742a2e67
@ -98,7 +98,7 @@ void PeriodicTask::taskFunctionality() {
|
|||||||
std::chrono::duration_cast<std::chrono::milliseconds>(
|
std::chrono::duration_cast<std::chrono::milliseconds>(
|
||||||
std::chrono::system_clock::now().time_since_epoch())
|
std::chrono::system_clock::now().time_since_epoch())
|
||||||
};
|
};
|
||||||
auto nextStartTime{ currentStartTime };
|
auto nextStartTime { currentStartTime };
|
||||||
|
|
||||||
/* Enter the loop that defines the task behavior. */
|
/* Enter the loop that defines the task behavior. */
|
||||||
for (;;) {
|
for (;;) {
|
||||||
@ -109,8 +109,6 @@ void PeriodicTask::taskFunctionality() {
|
|||||||
object->performOperation();
|
object->performOperation();
|
||||||
}
|
}
|
||||||
if(not delayForInterval(¤tStartTime, periodChrono)) {
|
if(not delayForInterval(¤tStartTime, periodChrono)) {
|
||||||
sif::warning << "PeriodicTask: " << taskName <<
|
|
||||||
" missed deadline!\n" << std::flush;
|
|
||||||
if(deadlineMissedFunc != nullptr) {
|
if(deadlineMissedFunc != nullptr) {
|
||||||
this->deadlineMissedFunc();
|
this->deadlineMissedFunc();
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user