summaryrefslogtreecommitdiff
path: root/src/app
diff options
context:
space:
mode:
authorDaniel Friesel <derf@finalrewind.org>2017-12-15 09:20:30 +0100
committerDaniel Friesel <derf@finalrewind.org>2017-12-15 09:20:30 +0100
commitbfcfa4cf67bad25ccba5ff735967d4c6abff899c (patch)
treeef153eb55f025f31fdb8abddb57d33e3131624d4 /src/app
parent62bb7da1740d7d4aaef3cbcc1261fc5ab62960ae (diff)
Add support for ESP8266 secondary LED
Diffstat (limited to 'src/app')
-rw-r--r--src/app/ledblink/main.cc5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/app/ledblink/main.cc b/src/app/ledblink/main.cc
index 75c9116..8b0fe87 100644
--- a/src/app/ledblink/main.cc
+++ b/src/app/ledblink/main.cc
@@ -6,9 +6,6 @@
#ifndef TIMER_CYCLES
#error makeflag timer_cycles=1 required
#endif
-#ifndef TIMER_S
-#error makeflag timer_s=1 required
-#endif
/*
void check_command(unsigned char argc, char** argv)
@@ -96,7 +93,9 @@ void check_command(unsigned char argc, char** argv)
void loop(void)
{
gpio.led_toggle(1);
+#ifdef TIMER_S
kout << dec << uptime.get_s() << endl;
+#endif
}
int main(void)