Browse Source

AP_Periph: re-init LEDs at 1Hz

mission-4.1.18
Andrew Tridgell 5 years ago
parent
commit
42d72cfd66
  1. 3
      Tools/AP_Periph/AP_Periph.cpp

3
Tools/AP_Periph/AP_Periph.cpp

@ -151,6 +151,9 @@ void AP_Periph_FW::update() @@ -151,6 +151,9 @@ void AP_Periph_FW::update()
#endif
hal.scheduler->delay(1);
show_stack_usage();
#endif
#ifdef HAL_PERIPH_NEOPIXEL_COUNT
hal.rcout->set_neopixel_num_LEDs(HAL_PERIPH_NEOPIXEL_CHAN, HAL_PERIPH_NEOPIXEL_COUNT);
#endif
}
can_update();

Loading…
Cancel
Save