diff options
author | Daniel Friesel <derf@finalrewind.org> | 2017-12-15 09:20:30 +0100 |
---|---|---|
committer | Daniel Friesel <derf@finalrewind.org> | 2017-12-15 09:20:30 +0100 |
commit | bfcfa4cf67bad25ccba5ff735967d4c6abff899c (patch) | |
tree | ef153eb55f025f31fdb8abddb57d33e3131624d4 /src/app | |
parent | 62bb7da1740d7d4aaef3cbcc1261fc5ab62960ae (diff) |
Add support for ESP8266 secondary LED
Diffstat (limited to 'src/app')
-rw-r--r-- | src/app/ledblink/main.cc | 5 |
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) |