Skip to content

Commit ca4832a

Browse files
committed
logging
1 parent 9a81907 commit ca4832a

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

src/CommonHelix.h

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,16 +2,17 @@
22
#include "Arduino.h"
33

44
// User Settings: Activate/Deactivate logging
5-
#define LOGGING_ACTIVE true
6-
#define SYNCH_WORD_LEN 4
5+
#ifndef HELIX_LOGGING_ACTIVE
6+
#define HELIX_LOGGING_ACTIVE true
7+
#endif
78

89

910
#ifndef ARDUINO
1011
// remove yield statment if used outside of arduino
1112
#define yield()
1213
#endif
1314

14-
#if LOGGING_ACTIVE == true
15+
#if HELIX_LOGGING_ACTIVE == true
1516
static char log_buffer[512];
1617
enum LogLevel {Debug, Info, Warning, Error};
1718
static LogLevel minLogLevel = Debug;

0 commit comments

Comments
 (0)