summaryrefslogtreecommitdiffstats
path: root/print.h
diff options
context:
space:
mode:
authortmk <nobody@nowhere>2010-10-23 20:27:43 +0200
committertmk <nobody@nowhere>2010-10-23 20:33:08 +0200
commit4acc38751e9c8e90921773e6e5f5a100b0729d98 (patch)
treee8e650c6c0557871f55c39b6449a0cc2479fbf58 /print.h
parentbf92bdd7fa9938c162c29e565d245e5609e4a912 (diff)
downloadqmk_firmware-4acc38751e9c8e90921773e6e5f5a100b0729d98.tar.gz
qmk_firmware-4acc38751e9c8e90921773e6e5f5a100b0729d98.tar.xz
switch debug on/off by pressing 4 keys on booting time
Diffstat (limited to 'print.h')
-rw-r--r--print.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/print.h b/print.h
index d61e5de3e..77290520e 100644
--- a/print.h
+++ b/print.h
@@ -1,9 +1,13 @@
#ifndef PRINT_H__
#define PRINT_H__ 1
+#include <stdbool.h>
#include <avr/pgmspace.h>
#include "usb_debug.h"
+
+bool print_enable;
+
// this macro allows you to write print("some text") and
// the string is automatically placed into flash memory :)
#define print(s) print_P(PSTR(s))