- added raw logging

- better calibration output
- added calibration plotter
This commit is contained in:
0x23 2025-10-18 12:43:13 +02:00
parent 7d41d30757
commit 3be961eecf
6 changed files with 53 additions and 4 deletions

View file

@ -60,6 +60,13 @@ void Logger::error(const char* fmt, ...) {
}
}
void Logger::raw(const char* fmt, ...) {
va_list args;
va_start(args, fmt);
log(ELogLevel::NONE, fmt, args);
va_end(args);
}
void Logger::log(ELogLevel level, const char* fmt, va_list args) {
char buf[128]; // Adjust size as needed
vsnprintf(buf, sizeof(buf), fmt, args);

View file

@ -15,6 +15,7 @@
#define LOG_INFO(...) Logger::instance().info(__VA_ARGS__)
#define LOG_WARNING(...) Logger::instance().warn(__VA_ARGS__)
#define LOG_ERROR(...) Logger::instance().error(__VA_ARGS__)
#define LOG_RAW(...) Logger::instance().raw(__VA_ARGS__)
//*** ENUM ******************************************************************************
@ -39,6 +40,7 @@ class Logger {
void info(const char* fmt, ...);
void warn(const char* fmt, ...);
void error(const char* fmt, ...);
void raw(const char* fmt, ...);
private:
Logger() = default;