eive-obsw/mission/trace.cpp
Robin Mueller a57384f6c4
Some checks failed
EIVE/eive-obsw/pipeline/head There was a failure building this commit
trace has settable div
2023-02-14 11:11:06 +01:00

11 lines
231 B
C++

#include "trace.h"
#include "fsfw/serviceinterface.h"
void trace::threadTrace(uint32_t& counter, const char* name, unsigned div) {
counter++;
if (counter % div == 0) {
sif::debug << name << " running" << std::endl;
}
}