desktop: don't alarm in CLI

loop() is not called in menu system
This commit is contained in:
Andrew Tridgell 2011-11-10 00:14:04 +11:00
parent d98f3ebd0c
commit af1ddacc1b
1 changed files with 6 additions and 2 deletions

View File

@ -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);