mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-07-16 04:50:36 +08:00
drivers/uavcan: silence redundant exit message
This commit is contained in:
@@ -570,19 +570,18 @@ UavcanServers::run(pthread_addr_t)
|
||||
// Shut down once armed
|
||||
// TODO (elsewhere): start up again once disarmed?
|
||||
if (armed_sub.updated()) {
|
||||
actuator_armed_s armed{};
|
||||
armed_sub.copy(&armed);
|
||||
actuator_armed_s armed;
|
||||
|
||||
if (armed.armed && !(armed.lockdown || armed.manual_lockdown)) {
|
||||
PX4_INFO("UAVCAN command bridge: system armed, exiting now.");
|
||||
break;
|
||||
if (armed_sub.copy(&armed)) {
|
||||
if (armed.armed && !(armed.lockdown || armed.manual_lockdown)) {
|
||||
PX4_INFO("UAVCAN command bridge: system armed, exiting now.");
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
_subnode_thread_should_exit = false;
|
||||
|
||||
PX4_INFO("exiting");
|
||||
return (pthread_addr_t) 0;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user