summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorerdgeist <erdgeist@bauklotz.fritz.box>2018-04-02 01:39:28 +0200
committererdgeist <erdgeist@bauklotz.fritz.box>2018-04-02 01:39:28 +0200
commit7e05ef1bfe7eb47a4acb44f6e0d8f70069451b00 (patch)
tree44061b89e634d940981d8fb19e7daf5ee4714cf8
parent56e25c3802c751c55b890bd26351bec205170e5e (diff)
Put debug code wrapper in main header
-rw-r--r--main.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/main.h b/main.h
index 38fe4ff..e3df319 100644
--- a/main.h
+++ b/main.h
@@ -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
9uint32_t now(); // get monotonic time in ms 14uint32_t now(); // get monotonic time in ms