From ff5fc36fb3fdf80623cdffab3f89f90228e0d5fb Mon Sep 17 00:00:00 2001 From: timg7 Date: Mon, 28 Jan 2019 12:45:02 +0100 Subject: [PATCH] Surrounded set_led_timer() calls with #ifdef LEDE Changed lines 102, 103, 112, 113 to match lines 58-61 --- src/main.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/main.cpp b/src/main.cpp index 7236277..439498d 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -99,8 +99,10 @@ int main(int argc, char *argv[]) debug("Server destroyed - quitting"); delete(server); delete(scope); +#ifdef LEDE set_led_timer(LED_GREEN, 0, 1000); set_led_timer(LED_BLUE, 1000, 0); +#endif } } } @@ -109,7 +111,9 @@ int main(int argc, char *argv[]) std::this_thread::sleep_for(std::chrono::milliseconds(200)); } libusb_exit(NULL); +#ifdef LEDE set_led_timer(LED_GREEN, 0, 1000); set_led_timer(LED_BLUE, 0, 1000); +#endif info("Server quiting"); }