Browse Source

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.

sbg
Pavel Kirienko 10 years ago
parent
commit
3f961bf3c6
  1. 4
      src/modules/uavcan/uavcan_main.cpp

4
src/modules/uavcan/uavcan_main.cpp

@ -698,7 +698,9 @@ int uavcan_main(int argc, char *argv[]) @@ -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

Loading…
Cancel
Save