1
0
forked from fsfw/fsfw

handler ID cached, debug output improved

This commit is contained in:
2020-08-29 19:08:10 +02:00
parent 6c02776975
commit 15bb0aee98
3 changed files with 12 additions and 5 deletions

View File

@ -147,13 +147,18 @@ void FixedTimeslotTask::checkMissedDeadline(const TickType_t xLastWakeTime,
}
void FixedTimeslotTask::handleMissedDeadline() {
#ifdef DEBUG
sif::warning << "FixedTimeslotTask: " << pcTaskGetName(NULL) <<
" missed deadline!\n" << std::flush;
#endif
if(deadlineMissedFunc != nullptr) {
this->deadlineMissedFunc();
}
#ifdef DEBUG
object_id_t handlerId = pst.current->handlerId;
sif::warning << "FixedTimeslotTask: " << pcTaskGetName(NULL) << " with"
<< " object ID 0x" << std::setfill('0') << std::setw(8) << std::hex
<< handlerId << " missed deadline!" << std::setfill(' ')
<< std::dec << std::endl;
#endif
}
ReturnValue_t FixedTimeslotTask::sleepFor(uint32_t ms) {