mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-18 00:03:33 +08:00
Back Port of Git Versioning - without side effects Part 2
This commit is contained in:
@@ -41,6 +41,7 @@
|
||||
*/
|
||||
|
||||
#include <stdio.h>
|
||||
#include <stdbool.h>
|
||||
#include <string.h>
|
||||
#include <version/version.h>
|
||||
#include <systemlib/err.h>
|
||||
@@ -91,7 +92,8 @@ int ver_main(int argc, char *argv[])
|
||||
return ret;
|
||||
|
||||
} else {
|
||||
errx(1, "Not enough arguments, try 'ver hwcmp PX4FMU_V2'");
|
||||
warn("Not enough arguments, try 'ver hwcmp PX4FMU_V2'");
|
||||
return 1;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -158,7 +160,8 @@ int ver_main(int argc, char *argv[])
|
||||
|
||||
|
||||
if (ret == 1) {
|
||||
errx(1, "unknown command.\n");
|
||||
warn("unknown command.\n");
|
||||
return 1;
|
||||
}
|
||||
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user