Skip to content

Commit

Permalink
Commander:Support BOARD_INDICATE_ARMED_STATE for HW that supports ext…
Browse files Browse the repository at this point in the history
…ernal armed indiction
  • Loading branch information
David Sidrane authored and dagar committed Feb 26, 2019
1 parent bf8a5e9 commit 477152a
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/modules/commander/Commander.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2699,6 +2699,10 @@ control_status_leds(vehicle_status_s *status_local, const actuator_armed_s *actu

last_overload = overload;

/* board supports HW armed indicator */

BOARD_INDICATE_ARMED_STATE(actuator_armed->armed);

#if !defined(CONFIG_ARCH_LEDS) && defined(BOARD_HAS_CONTROL_STATUS_LEDS)

/* this runs at around 20Hz, full cycle is 16 ticks = 10/16Hz */
Expand Down

0 comments on commit 477152a

Please sign in to comment.