trace has settable div
Some checks failed
EIVE/eive-obsw/pipeline/head There was a failure building this commit

This commit is contained in:
Robin Müller 2023-02-14 11:11:06 +01:00
parent 2aac3c67ee
commit a57384f6c4
No known key found for this signature in database
GPG Key ID: 11D4952C8CCEF814
2 changed files with 3 additions and 3 deletions

View File

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

View File

@ -7,7 +7,7 @@
namespace trace {
void threadTrace(uint32_t& counter, const char* name);
void threadTrace(uint32_t& counter, const char* name, unsigned div = 5);
}