mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-19 07:43:35 +08:00
Fix CID 12427 & 12438
This commit is contained in:
@@ -3007,8 +3007,9 @@ monitor(void)
|
||||
poll(fds, 1, 2000);
|
||||
|
||||
if (fds[0].revents == POLLIN) {
|
||||
int c;
|
||||
read(0, &c, 1);
|
||||
/* control logic is to cancel with any key */
|
||||
char c;
|
||||
(void)read(0, &c, 1);
|
||||
|
||||
if (cancels-- == 0) {
|
||||
printf("\033[2J\033[H"); /* move cursor home and clear screen */
|
||||
|
||||
Reference in New Issue
Block a user