From bfcfa4cf67bad25ccba5ff735967d4c6abff899c Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Fri, 15 Dec 2017 09:20:30 +0100 Subject: Add support for ESP8266 secondary LED --- src/app/ledblink/main.cc | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'src/app/ledblink') 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) -- cgit v1.2.3