mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-16 01:33:33 +08:00
Merge branch 'master' into cmake-2
This commit is contained in:
@@ -233,7 +233,10 @@ esc_calib_main(int argc, char *argv[])
|
||||
ret = poll(&fds, 1, 0);
|
||||
|
||||
if (ret > 0) {
|
||||
read(0, &c, 1);
|
||||
if (read(0, &c, 1) <= 0) {
|
||||
printf("ESC calibration read error\n");
|
||||
return 0;
|
||||
}
|
||||
|
||||
if (c == 'y' || c == 'Y') {
|
||||
break;
|
||||
@@ -315,7 +318,10 @@ esc_calib_main(int argc, char *argv[])
|
||||
ret = poll(&fds, 1, 0);
|
||||
|
||||
if (ret > 0) {
|
||||
read(0, &c, 1);
|
||||
if (read(0, &c, 1) <= 0) {
|
||||
printf("ESC calibration read error\n");
|
||||
goto done;
|
||||
}
|
||||
|
||||
if (c == 13) {
|
||||
break;
|
||||
@@ -352,7 +358,10 @@ esc_calib_main(int argc, char *argv[])
|
||||
ret = poll(&fds, 1, 0);
|
||||
|
||||
if (ret > 0) {
|
||||
read(0, &c, 1);
|
||||
if (read(0, &c, 1) <= 0) {
|
||||
printf("ESC calibration read error\n");
|
||||
goto done;
|
||||
}
|
||||
|
||||
if (c == 13) {
|
||||
break;
|
||||
|
||||
Reference in New Issue
Block a user