diff options
| author | Selene ToyKeeper | 2017-08-25 02:32:43 -0600 |
|---|---|---|
| committer | Selene ToyKeeper | 2017-08-25 02:32:43 -0600 |
| commit | 4052efbf6d7993c6b846105e870b1fcbcdb761e7 (patch) | |
| tree | 8de907ef65d1da3897f11d3e2d79bd42bb7e0918 /spaghetti-monster/fsm-adc.c | |
| parent | Added battcheck mode to ramping-ui. It's bigger than I had hoped. :( (diff) | |
| download | anduril-4052efbf6d7993c6b846105e870b1fcbcdb761e7.tar.gz anduril-4052efbf6d7993c6b846105e870b1fcbcdb761e7.tar.bz2 anduril-4052efbf6d7993c6b846105e870b1fcbcdb761e7.zip | |
Made 4bar and 8bar battcheck styles work.
Added LVP handling for other modes, including battcheck.
Diffstat (limited to '')
| -rw-r--r-- | spaghetti-monster/fsm-adc.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/spaghetti-monster/fsm-adc.c b/spaghetti-monster/fsm-adc.c index 70e3bb3..622ef0f 100644 --- a/spaghetti-monster/fsm-adc.c +++ b/spaghetti-monster/fsm-adc.c @@ -271,7 +271,7 @@ PROGMEM const uint8_t voltage_blinks[] = { #endif #ifdef BATTCHECK_8bars PROGMEM const uint8_t voltage_blinks[] = { - 30, 33, 35, 37, 38, 39 40, 41, 42, 99, + 30, 33, 35, 37, 38, 39, 40, 41, 42, 99, }; #endif void battcheck() { @@ -282,7 +282,8 @@ void battcheck() { for(i=0; voltage >= pgm_read_byte(voltage_blinks + i); i++) {} - blink_num(i); + if (blink_digit(i)) + nice_delay_ms(1000); #endif } #endif |
