mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-05-23 22:58:10 +08:00
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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user