some more warning fixes
This commit is contained in:
parent
d1cd180534
commit
47698418fc
@ -62,12 +62,6 @@ void MultiObjectTask::taskFunctionality() {
|
|||||||
}
|
}
|
||||||
rtems_status_code status = TaskBase::restartPeriod(periodTicks,periodId);
|
rtems_status_code status = TaskBase::restartPeriod(periodTicks,periodId);
|
||||||
if (status == RTEMS_TIMEOUT) {
|
if (status == RTEMS_TIMEOUT) {
|
||||||
char nameSpace[8] = { 0 };
|
|
||||||
char* ptr = rtems_object_get_name(getId(), sizeof(nameSpace),
|
|
||||||
nameSpace);
|
|
||||||
#if FSFW_CPP_OSTREAM_ENABLED == 1
|
|
||||||
sif::error << "ObjectTask: " << ptr << " Deadline missed." << std::endl;
|
|
||||||
#endif
|
|
||||||
if (this->deadlineMissedFunc != nullptr) {
|
if (this->deadlineMissedFunc != nullptr) {
|
||||||
this->deadlineMissedFunc();
|
this->deadlineMissedFunc();
|
||||||
}
|
}
|
||||||
|
@ -14,7 +14,7 @@ TaskBase::TaskBase(rtems_task_priority set_priority, size_t stack_size,
|
|||||||
}
|
}
|
||||||
//The task is created with the operating system's system call.
|
//The task is created with the operating system's system call.
|
||||||
rtems_status_code status = RTEMS_UNSATISFIED;
|
rtems_status_code status = RTEMS_UNSATISFIED;
|
||||||
if (set_priority >= 0 && set_priority <= 99) {
|
if (set_priority <= 99) {
|
||||||
status = rtems_task_create(osalName,
|
status = rtems_task_create(osalName,
|
||||||
(0xFF - 2 * set_priority), stack_size,
|
(0xFF - 2 * set_priority), stack_size,
|
||||||
RTEMS_PREEMPT | RTEMS_NO_TIMESLICE | RTEMS_NO_ASR,
|
RTEMS_PREEMPT | RTEMS_NO_TIMESLICE | RTEMS_NO_ASR,
|
||||||
|
Loading…
Reference in New Issue
Block a user