Allow HASP_LOG_LEVEL as override

This commit is contained in:
fvanroie 2022-04-26 14:45:26 +02:00
parent 188c92c459
commit f4e408d1c5
4 changed files with 6 additions and 3 deletions

View File

@ -4,6 +4,8 @@
#ifndef HASP_CONF_H
#define HASP_CONF_H
#include "ArduinoLog.h"
#ifdef USE_CONFIG_OVERRIDE
#include "user_config_override.h"
#endif

View File

@ -4,6 +4,8 @@
#ifndef HASP_MACRO_H
#define HASP_MACRO_H
#include "ArduinoLog.h"
#ifdef USE_CONFIG_OVERRIDE
#include "user_config_override.h"
#endif
@ -12,8 +14,6 @@
#define LOG_OUTPUT(x, ...) printf(__VA_ARGS__)
#else
#include "ArduinoLog.h"
#ifndef HASP_LOG_LEVEL
#define HASP_LOG_LEVEL LOG_LEVEL_TRACE
#endif

View File

@ -1,3 +1,5 @@
#include "ArduinoLog.h"
#ifdef USE_CONFIG_OVERRIDE
#include "user_config_override.h"
#endif

View File

@ -68,7 +68,6 @@ build_flags =
-D HASP_VER_MIN=6
;-D HASP_VER_REV=3
-D HASP_VER_REV=3-dev
-D HASP_LOG_LEVEL=7
${override.build_flags}
; -- Shared library dependencies in all environments