aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTrygve Laugstøl <trygvis@inamo.no>2015-08-08 23:08:54 +0200
committerTrygve Laugstøl <trygvis@inamo.no>2015-08-08 23:08:54 +0200
commit3683899605e4aaa065026fd0973bb2ea6ecf5cd6 (patch)
treec36eaf741c3893146afd1d54537533a9ecab7534
parent455775a4a028c886d4d32dc816d57dff5bfae8aa (diff)
downloadtrygvisio_soil_moisture-3683899605e4aaa065026fd0973bb2ea6ecf5cd6.tar.gz
trygvisio_soil_moisture-3683899605e4aaa065026fd0973bb2ea6ecf5cd6.tar.bz2
trygvisio_soil_moisture-3683899605e4aaa065026fd0973bb2ea6ecf5cd6.tar.xz
trygvisio_soil_moisture-3683899605e4aaa065026fd0973bb2ea6ecf5cd6.zip
o An attempt to make sure that the RX and TX LEDs are turned off when running normally.
-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.