From 3683899605e4aaa065026fd0973bb2ea6ecf5cd6 Mon Sep 17 00:00:00 2001 From: Trygve Laugstøl Date: Sat, 8 Aug 2015 23:08:54 +0200 Subject: o An attempt to make sure that the RX and TX LEDs are turned off when running normally. --- trygvisio_soil_moisture.ino | 5 +++++ 1 file changed, 5 insertions(+) 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. -- cgit v1.2.3