trace has settable div
Some checks failed
EIVE/eive-obsw/pipeline/head There was a failure building this commit
Some checks failed
EIVE/eive-obsw/pipeline/head There was a failure building this commit
This commit is contained in:
parent
2aac3c67ee
commit
a57384f6c4
@ -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;
|
||||
}
|
||||
}
|
||||
|
@ -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);
|
||||
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user