mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-16 11:33:34 +08:00
uart_esc: fix compile error and remove printf
This commit is contained in:
@@ -440,14 +440,10 @@ void task_main(int argc, char *argv[])
|
||||
|
||||
if (updated) {
|
||||
orb_copy(ORB_ID(actuator_armed), _armed_sub, &_armed);
|
||||
PX4_INFO("armed: %s, pre-armed; %s",
|
||||
_armed.armed ? "true" : "false",
|
||||
_armed.prearmed ? "true" : "false");
|
||||
}
|
||||
}
|
||||
|
||||
uart_deinitialize();
|
||||
close(_fd_pwm);
|
||||
orb_unsubscribe(_controls_sub);
|
||||
orb_unsubscribe(_armed_sub);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user