aboutsummaryrefslogtreecommitdiff
path: root/app.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'app.cpp')
-rw-r--r--app.cpp6
1 files changed, 6 insertions, 0 deletions
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 <EEPROM.h>
+#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
};