Mercurial > public > mk2
diff code_part1/OSTC_code_asm_part1/divemode.asm @ 826:2151c4135fad
CHANGE: Battery percent based on ON-Time instead of battery voltage
author | heinrichsweikamp |
---|---|
date | Wed, 30 Sep 2015 20:25:28 +0200 |
parents | 95c08c0cfc29 |
children | f8afe90796d6 |
line wrap: on
line diff
--- a/code_part1/OSTC_code_asm_part1/divemode.asm Sun Aug 02 15:26:50 2015 +0200 +++ b/code_part1/OSTC_code_asm_part1/divemode.asm Wed Sep 30 20:25:28 2015 +0200 @@ -1915,9 +1915,10 @@ set_powersafe: btfsc low_battery_state ; battery warning alread active? bra set_powersafe2 ; Yes, but is it still required? - ; battery voltage in mV (value*256+Lowbyte=actual treshold) - movlw d'12' ; 3,328V - cpfsgt batt_voltage+1 + + call update_batt_get_percent_in_lo + movlw d'20' ; 20% + cpfsgt lo bra set_powersafe1 return