aboutsummaryrefslogtreecommitdiff
path: root/config-check.h
diff options
context:
space:
mode:
authorTrygve Laugstøl <trygvis@inamo.no>2015-08-10 19:30:14 +0200
committerTrygve Laugstøl <trygvis@inamo.no>2015-08-10 19:30:14 +0200
commit87fdaaabd62268936615321bc14679b3e59e286e (patch)
tree39f52f2aa1c77838e6b32ca53a6e6e5cc285c304 /config-check.h
parent3683899605e4aaa065026fd0973bb2ea6ecf5cd6 (diff)
downloadtrygvisio_soil_moisture-87fdaaabd62268936615321bc14679b3e59e286e.tar.gz
trygvisio_soil_moisture-87fdaaabd62268936615321bc14679b3e59e286e.tar.bz2
trygvisio_soil_moisture-87fdaaabd62268936615321bc14679b3e59e286e.tar.xz
trygvisio_soil_moisture-87fdaaabd62268936615321bc14679b3e59e286e.zip
o Implementing the SoftwareSerial version of debugging.
Diffstat (limited to 'config-check.h')
-rw-r--r--config-check.h19
1 files changed, 11 insertions, 8 deletions
diff --git a/config-check.h b/config-check.h
index 077d391..e33e1ad 100644
--- a/config-check.h
+++ b/config-check.h
@@ -19,6 +19,11 @@
#endif
/*
+ * 20150725: Initial version
+ * 20150808: Changed values of DEBUG_SINK.
+ */
+
+/*
*
* Configuration Section.
*
@@ -36,7 +41,6 @@
* 1: prototype-a, the hand assembled PCB
* 2: prototype-b, the china produced PCB
* 3: attiny85
- * 4: OLIMEXINO-32U4
*
* No default, has to be specified in config.h
*/
@@ -100,15 +104,14 @@
* Selects where all debug logging will go.
*
* 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
+ * 0: no logging, all logging is discarded
+ * 1: Use Serial. Uses the platforms default Serial port, usually the USB or hardware serial ports on your board.
+ * 2: Use Software serial
*/
#ifndef DEBUG_SINK
// Default to Serial
-#define DEBUG_SINK 2
+#define DEBUG_SINK 1
#endif
/*******************************************************************************
@@ -127,8 +130,8 @@
#undef USE_LOW_POWER_MODE
#endif
-#if DEBUG_SINK == 2
-#warning DEBUG_SINK must be 1 on ATTiny85 boards
+#if DEBUG_SINK != 0 && DEBUG_SINK != 2
+#warning DEBUG_SINK must be 0 or 2 on ATTiny85 boards
#undef DEBUG_SINK
#define DEBUG_SINK 1
#endif