mirror of
https://gitee.com/xiaohuolufeihua/bizhang_-obav.git
synced 2026-05-22 01:12:31 +00:00
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:
@@ -698,7 +698,9 @@ int uavcan_main(int argc, char *argv[])
|
||||
|
||||
if (!std::strcmp(argv[1], "start")) {
|
||||
if (UavcanNode::instance()) {
|
||||
errx(1, "already started");
|
||||
// Already running, no error
|
||||
warnx("already started");
|
||||
::exit(0);
|
||||
}
|
||||
|
||||
// Node ID
|
||||
|
||||
Reference in New Issue
Block a user