mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-18 02:43:33 +08:00
fix incorrect argc < 1 check for no arguments
-requiring arguments should be argc < 2
This commit is contained in:
committed by
Lorenz Meier
parent
63d741e368
commit
2e824bbeea
@@ -54,7 +54,7 @@ extern int main(int argc, char **argv);
|
||||
extern "C" __EXPORT int mc_pos_control_m_main(int argc, char *argv[]);
|
||||
int mc_pos_control_m_main(int argc, char *argv[])
|
||||
{
|
||||
if (argc < 1) {
|
||||
if (argc < 2) {
|
||||
errx(1, "usage: mc_pos_control_m {start|stop|status}");
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user