aboutsummaryrefslogtreecommitdiff
path: root/spaghetti-monster/fsm-misc.c
diff options
context:
space:
mode:
authorSelene ToyKeeper2017-09-03 14:58:22 -0600
committerSelene ToyKeeper2017-09-03 14:58:22 -0600
commita419850e536f00549120255a627137faffded47a (patch)
tree60976f561f189d6e5e08a581bdc3824f163f65be /spaghetti-monster/fsm-misc.c
parentAdded UI2. UI2 is weird. (diff)
downloadanduril-a419850e536f00549120255a627137faffded47a.tar.gz
anduril-a419850e536f00549120255a627137faffded47a.tar.bz2
anduril-a419850e536f00549120255a627137faffded47a.zip
Got the 4th PWM channel to work, ish. (channel 4 is inverted though)
Moved go_to_suspend thing into main() instead of making each UI handle that during loop(). Made default_state() optional. Fixed bug where battcheck and other number readouts could interfere with the state which interrupted them. (they would sometimes turn the LED off after the new state had already started) Updated darkhorse's moon levels to match new ramp on D4 hardware.
Diffstat (limited to 'spaghetti-monster/fsm-misc.c')
-rw-r--r--spaghetti-monster/fsm-misc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/spaghetti-monster/fsm-misc.c b/spaghetti-monster/fsm-misc.c
index 7322a59..5d28002 100644
--- a/spaghetti-monster/fsm-misc.c
+++ b/spaghetti-monster/fsm-misc.c
@@ -30,7 +30,7 @@ uint8_t blink_digit(uint8_t num) {
for (; num>0; num--) {
set_level(BLINK_BRIGHTNESS);
- if (! nice_delay_ms(ontime)) { set_level(0); return 0; }
+ if (! nice_delay_ms(ontime)) { return 0; }
set_level(0);
//if (current_state != old_state) return 0;
if (! nice_delay_ms(400)) return 0;