forked from Archive/PX4-Autopilot
UAVCAN driver silently ignores repeated start commands without error. This allows to avoid error messages when UAVCAN driver is started from extras script before default initialization sequence is executed.
This commit is contained in:
parent
b7b9863595
commit
3f961bf3c6
|
@ -698,7 +698,9 @@ int uavcan_main(int argc, char *argv[])
|
||||||
|
|
||||||
if (!std::strcmp(argv[1], "start")) {
|
if (!std::strcmp(argv[1], "start")) {
|
||||||
if (UavcanNode::instance()) {
|
if (UavcanNode::instance()) {
|
||||||
errx(1, "already started");
|
// Already running, no error
|
||||||
|
warnx("already started");
|
||||||
|
::exit(0);
|
||||||
}
|
}
|
||||||
|
|
||||||
// Node ID
|
// Node ID
|
||||||
|
|
Loading…
Reference in New Issue