Skip to content

Commit

Permalink
Allow HASP_LOG_LEVEL as override
Browse files Browse the repository at this point in the history
  • Loading branch information
fvanroie committed Apr 26, 2022
1 parent 188c92c commit f4e408d
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 3 deletions.
2 changes: 2 additions & 0 deletions include/hasp_conf.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions include/hasp_macro.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down
2 changes: 2 additions & 0 deletions include/lv_conf.h
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
#include "ArduinoLog.h"

#ifdef USE_CONFIG_OVERRIDE
#include "user_config_override.h"
#endif
Expand Down
1 change: 0 additions & 1 deletion platformio.ini
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit f4e408d

Please sign in to comment.