From 930b9e23ab981251e0cbd839c5a2f3a769c3fb47 Mon Sep 17 00:00:00 2001 From: Trygve Laugstøl Date: Fri, 31 Jul 2015 20:34:29 +0200 Subject: o Even better Debug for the ATtiny85 implementation.h. --- config-check.h | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'config-check.h') diff --git a/config-check.h b/config-check.h index 45f1af0..63e9b95 100644 --- a/config-check.h +++ b/config-check.h @@ -101,6 +101,8 @@ * Values: * 1: no logging, all logging is discarded * 2: Use Serial. Uses the platforms default Serial port, usually the USB or hardware serial ports on your board. + * + * TODO: Change this to 0=no logging, 1=serial, 2=software serial */ #ifndef DEBUG_SINK @@ -124,6 +126,12 @@ #undef USE_LOW_POWER_MODE #endif +#if DEBUG_SINK == 2 +#warning DEBUG_SINK must be 1 on ATTiny85 boards +#undef DEBUG_SINK +#define DEBUG_SINK 1 +#endif + #endif // __AVR_ATtiny85__ #endif -- cgit v1.2.3