renormalizing pull request step1

This commit is contained in:
Robin Müller 2020-09-04 13:52:02 +02:00
parent 7ad5274803
commit 5eaf6cfd1f
2 changed files with 272 additions and 267 deletions

View File

@ -147,13 +147,18 @@ void FixedTimeslotTask::checkMissedDeadline(const TickType_t xLastWakeTime,
} }
void FixedTimeslotTask::handleMissedDeadline() { void FixedTimeslotTask::handleMissedDeadline() {
#ifdef DEBUG
sif::warning << "FixedTimeslotTask: " << pcTaskGetName(NULL) <<
" missed deadline!\n" << std::flush;
#endif
if(deadlineMissedFunc != nullptr) { if(deadlineMissedFunc != nullptr) {
this->deadlineMissedFunc(); 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) { ReturnValue_t FixedTimeslotTask::sleepFor(uint32_t ms) {