#include "LiveTmTask.h" #include LiveTmTask::LiveTmTask(object_id_t objectId, VirtualChannelWithQueue& channel) : SystemObject(objectId), channel(channel) {} ReturnValue_t LiveTmTask::performOperation(uint8_t opCode) { while (true) { ReturnValue_t result = channel.sendNextTm(); if (result == MessageQueueIF::EMPTY) { // 5 ms IDLE delay. Might tweak this in the future. TaskFactory::delayTask(5); } } }