From 4052efbf6d7993c6b846105e870b1fcbcdb761e7 Mon Sep 17 00:00:00 2001 From: Selene ToyKeeper Date: Fri, 25 Aug 2017 02:32:43 -0600 Subject: Made 4bar and 8bar battcheck styles work. Added LVP handling for other modes, including battcheck. --- spaghetti-monster/fsm-adc.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'spaghetti-monster/fsm-adc.c') 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 -- cgit v1.2.3