2021-11-19 14:12:12 +01:00
|
|
|
#include "FsfwTestTask.h"
|
|
|
|
|
2022-05-05 20:55:28 +02:00
|
|
|
FsfwTestTask::FsfwTestTask(object_id_t objectId, bool periodicEvent)
|
|
|
|
: TestTask(objectId), periodicEvent(periodicEvent) {}
|
2021-11-19 14:12:12 +01:00
|
|
|
|
|
|
|
ReturnValue_t FsfwTestTask::performPeriodicAction() {
|
2022-05-05 20:55:28 +02:00
|
|
|
if (periodicEvent) {
|
|
|
|
triggerEvent(TEST_EVENT, 0x1234, 0x4321);
|
|
|
|
}
|
|
|
|
return HasReturnvaluesIF::RETURN_OK;
|
2021-11-19 14:12:12 +01:00
|
|
|
}
|