From afd694f05178c22b4f71f65143c4647ce912d980 Mon Sep 17 00:00:00 2001 From: Trygve Laugstøl Date: Sun, 26 Jul 2015 18:06:29 +0200 Subject: o Much improved Debug class. - Inlining all definitions to make everything shorter and easier to read. - More const so even more can be inlined. o Adding some support for ATTiny85, still more work to be done. o Removing two unused battery characteristics. o Dynamically adding battery and temperature characteristics if their pipes are defined. --- app.cpp | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'app.cpp') diff --git a/app.cpp b/app.cpp index aef96d7..30160dc 100644 --- a/app.cpp +++ b/app.cpp @@ -2,12 +2,16 @@ #include "Debug.h" #include "config-check.h" +#ifdef PERSISTENT_CONFIGURATION_SUPPORT #include +#endif #if SM_BOARD_VERSION == 1 #define SENSOR_COUNT 2 #elif SM_BOARD_VERSION == 2 #define SENSOR_COUNT 4 +#elif SM_BOARD_VERSION == 3 +#define SENSOR_COUNT 1 #else #error "SM_BOARD_VERSION must be set to a valid value. See config-check.h" #endif @@ -37,6 +41,8 @@ struct sm_sensor { { A1, 3, 5, 0, 200, 3000, 4, "woot"}, { A2, 8, 10, 0, 200, 3000, 3, "foo"}, { A3, 11, 12, 0, 200, 3000, 3, "bar"}, +#elif SM_BOARD_VERSION == 3 + { A0, 1, 2, 0, 200, 3000, 3, "0"}, #endif }; -- cgit v1.2.3