forked from Archive/PX4-Autopilot
Added missing return on error
When mc_pos_control_main.cpp was ported to posix one error condition retuned 0 instead of 1. Signed-off-by: Mark Charlebois <charlebm@gmail.com>
This commit is contained in:
parent
2bdfd8ca1b
commit
abe61a3d7e
|
@ -1473,6 +1473,7 @@ int mc_pos_control_main(int argc, char *argv[])
|
|||
if (!strcmp(argv[1], "stop")) {
|
||||
if (pos_control::g_control == nullptr) {
|
||||
warnx("not running");
|
||||
return 1;
|
||||
}
|
||||
|
||||
delete pos_control::g_control;
|
||||
|
|
Loading…
Reference in New Issue