mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-11 18:38:28 -04:00
desktop: don't alarm in CLI
loop() is not called in menu system
This commit is contained in:
parent
d98f3ebd0c
commit
af1ddacc1b
@ -51,7 +51,9 @@ int main(int argc, char * const argv[])
|
|||||||
}
|
}
|
||||||
|
|
||||||
signal(SIGALRM, sig_alarm);
|
signal(SIGALRM, sig_alarm);
|
||||||
alarm(5);
|
if (!desktop_state.slider) {
|
||||||
|
alarm(5);
|
||||||
|
}
|
||||||
|
|
||||||
// run main setup() function from sketch
|
// run main setup() function from sketch
|
||||||
setup();
|
setup();
|
||||||
@ -61,7 +63,9 @@ int main(int argc, char * const argv[])
|
|||||||
fd_set fds;
|
fd_set fds;
|
||||||
int fd_high = 0;
|
int fd_high = 0;
|
||||||
|
|
||||||
alarm(5);
|
if (!desktop_state.slider) {
|
||||||
|
alarm(5);
|
||||||
|
}
|
||||||
|
|
||||||
FD_ZERO(&fds);
|
FD_ZERO(&fds);
|
||||||
FD_SET(0, &fds);
|
FD_SET(0, &fds);
|
||||||
|
Loading…
Reference in New Issue
Block a user