lib/led: replace subscription missed error with perf count

This commit is contained in:
Daniel Agar
2021-09-15 12:23:18 -04:00
parent 113ea5ea26
commit e31dd34388
2 changed files with 10 additions and 6 deletions

View File

@@ -75,7 +75,8 @@ int LedController::update(LedControlData &control_data)
if ((_led_control_sub.get_last_generation() != last_generation + 1)
&& (_led_control_sub.get_last_generation() != last_generation)) {
PX4_ERR("led_control lost, generation %d -> %d", last_generation, _led_control_sub.get_last_generation());
perf_count(_led_control_sub_lost_perf);
PX4_DEBUG("led_control lost, generation %d -> %d", last_generation, _led_control_sub.get_last_generation());
}
// don't apply the new state just yet to avoid interrupting an ongoing blinking state