fix commander: avoid LED printf errors on every SITL startup

This commit is contained in:
Beat Küng
2020-01-22 16:54:54 +01:00
committed by Daniel Agar
parent 67f3234b5b
commit 8bfbfa033c
2 changed files with 5 additions and 9 deletions
+2 -7
View File
@@ -1196,13 +1196,8 @@ Commander::run()
param_t _param_rc_map_arm_switch = param_find("RC_MAP_ARM_SW");
/* initialize */
if (led_init() != OK) {
PX4_WARN("LED init failed");
}
if (buzzer_init() != OK) {
PX4_WARN("Buzzer init failed");
}
led_init();
buzzer_init();
{
// we need to do an initial publication to make sure uORB allocates the buffer, which cannot happen