| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
|
|
|
|
|
| |
didn't work sometimes.
The problem was that goodnight's EV_enter was executing before battcheck's loop() finished.
This meant battcheck's exit code would turn the emitter off right after goodnight's init set it to the desired level.
|
| |
|
|
|
|
|
|
|
| |
the user completes an input sequence.
All nice delays then get aborted until the next trip through the main() loop.
Eliminates the need to wrap nice_delay_ms() calls and handle the exit condition.
Also eliminates the risk of getting the UI out of sync with button events.
|
| |
|
|
|
|
| |
This fixes issues with some blinky modes being audible (particularly biking and lightning modes),
without sacrificing the power savings for other blinkies (like beacon and battcheck).
|
| | |
|
| |
|
|
|
|
|
|
|
| |
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.
|
| |
|
|
|
| |
(need to leave room for a trailing 0 in the array, oops)
|
| |
|
|
|
| |
Added a way to explicitly cancel the current "nice" delay without changing state.
|
| |
|
|
|
|
| |
Added fsm-misc.*, which currently only has interruptible blink functions in it.
(for blinking out numbers and such)
|
| |
|
|
|
|
| |
Added nice_delay_ms() to process events while waiting, and abort on state change.
Converted ramping-ui strobe to smoothly variable with party and tactical modes.
|
|
|
fsm-*.c and fsm-*.h.
|