eive-obsw/mission/trace.cpp

11 lines
231 B
C++
Raw Normal View History

2023-02-14 10:59:35 +01:00
#include "trace.h"
#include "fsfw/serviceinterface.h"
2023-02-14 11:11:06 +01:00
void trace::threadTrace(uint32_t& counter, const char* name, unsigned div) {
2023-02-14 10:59:35 +01:00
counter++;
2023-02-14 11:11:06 +01:00
if (counter % div == 0) {
2023-02-14 10:59:35 +01:00
sif::debug << name << " running" << std::endl;
}
}