From af1ddacc1bca60130fc112fdda10363b8ca775b3 Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Thu, 10 Nov 2011 00:14:04 +1100 Subject: [PATCH] desktop: don't alarm in CLI loop() is not called in menu system --- libraries/Desktop/support/main.cpp | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/libraries/Desktop/support/main.cpp b/libraries/Desktop/support/main.cpp index 8017f45ceb..b380cfda7e 100644 --- a/libraries/Desktop/support/main.cpp +++ b/libraries/Desktop/support/main.cpp @@ -51,7 +51,9 @@ int main(int argc, char * const argv[]) } signal(SIGALRM, sig_alarm); - alarm(5); + if (!desktop_state.slider) { + alarm(5); + } // run main setup() function from sketch setup(); @@ -61,7 +63,9 @@ int main(int argc, char * const argv[]) fd_set fds; int fd_high = 0; - alarm(5); + if (!desktop_state.slider) { + alarm(5); + } FD_ZERO(&fds); FD_SET(0, &fds);