1
0
mirror of https://github.com/thooge/esp32-nmea2000-obp60.git synced 2025-12-12 13:33:06 +01:00

Merge branch 'wellenvogel:master' into master

This commit is contained in:
norbert-walter
2022-01-11 09:42:39 +01:00
committed by GitHub
5 changed files with 362 additions and 2 deletions

View File

@@ -28,6 +28,7 @@ class GwLog{
void logDebug(int level, const char *fmt,...);
int isActive(int level){return level <= logLevel;};
void flush();
void setLevel(int level){this->logLevel=level;}
};
#define LOG_DEBUG(level,...){ if (logger != NULL && logger->isActive(level)) logger->logDebug(level,__VA_ARGS__);}