aboutsummaryrefslogtreecommitdiff
path: root/trygvisio_soil_moisture.ino
diff options
context:
space:
mode:
Diffstat (limited to 'trygvisio_soil_moisture.ino')
-rw-r--r--trygvisio_soil_moisture.ino5
1 files changed, 5 insertions, 0 deletions
diff --git a/trygvisio_soil_moisture.ino b/trygvisio_soil_moisture.ino
index 560aef7..d357d77 100644
--- a/trygvisio_soil_moisture.ino
+++ b/trygvisio_soil_moisture.ino
@@ -3,6 +3,8 @@
#include <lib_aci.h>
#include <aci_setup.h>
+// See config.h on how to configure the sketch
+#include "config.h"
#include "services.h"
#include "app.h"
@@ -45,6 +47,7 @@ void setup() {
Serial.begin((unsigned int)115200);
+#if WAIT_FOR_SERIAL_BEFORE_STARING == 1
// Wait until the serial port is available (useful only for the Leonardo)
// As the Leonardo board is not reseted every time you open the Serial Monitor
#if defined (__AVR_ATmega32U4__)
@@ -56,6 +59,8 @@ void setup() {
delay(1000);
#endif
+#endif // WAIT_FOR_SERIAL_BEFORE_STARING
+
setup_rf();
}