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 5c1a152..bb55b70 100644
--- a/trygvisio_soil_moisture.ino
+++ b/trygvisio_soil_moisture.ino
@@ -84,6 +84,11 @@ void __ble_assert(const char *file, uint16_t line)
static void go_to_sleep();
void setup() {
+#ifdef TXLED0
+ // An attempt to make sure that the RX and TX LEDs are turned off when running normally.
+ TXLED0;
+ TXLED1;
+#endif
#if defined(BLEND_MICRO_8MHZ)
// As the F_CPU = 8000000UL, the USB core make the PLLCSR = 0x02
// But the external xtal is 16000000Hz, so correct it here.