diff options
| author | Selene ToyKeeper | 2017-09-03 14:58:22 -0600 |
|---|---|---|
| committer | Selene ToyKeeper | 2017-09-03 14:58:22 -0600 |
| commit | a419850e536f00549120255a627137faffded47a (patch) | |
| tree | 60976f561f189d6e5e08a581bdc3824f163f65be /spaghetti-monster/momentary | |
| parent | Added UI2. UI2 is weird. (diff) | |
| download | anduril-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/momentary')
| -rw-r--r-- | spaghetti-monster/momentary/momentary.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/spaghetti-monster/momentary/momentary.c b/spaghetti-monster/momentary/momentary.c index 6b049f4..d4ac1db 100644 --- a/spaghetti-monster/momentary/momentary.c +++ b/spaghetti-monster/momentary/momentary.c @@ -52,7 +52,7 @@ uint8_t momentary_state(EventPtr event, uint16_t arg) { else if (event == EV_release) { light_off(); empty_event_sequence(); // don't attempt to parse multiple clicks - standby_mode(); // sleep while light is off + go_to_standby = 1; // sleep while light is off return 0; } @@ -68,7 +68,7 @@ void low_voltage() { } else { debug_blink(8); light_off(); - standby_mode(); + go_to_standby = 1; } } |
