From a154ddbda5477a9b5a66333b8777fd6d1ee99d39 Mon Sep 17 00:00:00 2001 From: Selene ToyKeeper Date: Sat, 21 Oct 2017 06:51:27 -0600 Subject: Moved indicator_led() from Anduril into FSM. Made it auto-set indicator level based on ramp level. Made Anduril configure voltage fudge and indicator LED functions based on driver type. Removed "ticks_spent_awake" thing since it's redundant. EV_tick arg does the same thing in fewer bytes. Rearranged some clauses in off_state to put events in a more coherent order. --- spaghetti-monster/fsm-misc.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'spaghetti-monster/fsm-misc.h') diff --git a/spaghetti-monster/fsm-misc.h b/spaghetti-monster/fsm-misc.h index 5e4f3d6..4e0eb4f 100644 --- a/spaghetti-monster/fsm-misc.h +++ b/spaghetti-monster/fsm-misc.h @@ -42,4 +42,9 @@ uint8_t blink(uint8_t num, uint8_t speed); #endif */ +#ifdef USE_INDICATOR_LED +void indicator_led(uint8_t lvl); +#endif + + #endif -- cgit v1.2.3