diff options
author | erdgeist <erdgeist@bauklotz.fritz.box> | 2018-04-02 01:39:28 +0200 |
---|---|---|
committer | erdgeist <erdgeist@bauklotz.fritz.box> | 2018-04-02 01:39:28 +0200 |
commit | 7e05ef1bfe7eb47a4acb44f6e0d8f70069451b00 (patch) | |
tree | 44061b89e634d940981d8fb19e7daf5ee4714cf8 | |
parent | 56e25c3802c751c55b890bd26351bec205170e5e (diff) |
Put debug code wrapper in main header
-rw-r--r-- | main.h | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -4,6 +4,11 @@ | |||
4 | 4 | ||
5 | #ifdef ARDUINO | 5 | #ifdef ARDUINO |
6 | #define NO_DISPLAY | 6 | #define NO_DISPLAY |
7 | #define harfe_debug(...) | ||
8 | #define harfe_error(...) | ||
9 | #else | ||
10 | #define harfe_debug printf | ||
11 | #define harfe_error fprintf | ||
7 | #endif | 12 | #endif |
8 | 13 | ||
9 | uint32_t now(); // get monotonic time in ms | 14 | uint32_t now(); // get monotonic time in ms |