Mercurial > public > hwos_code
diff src/menu_tree.asm @ 450:791a25c4aab4
bugfix "old battery" type
author | heinrichsweikamp |
---|---|
date | Wed, 31 Aug 2016 14:48:10 +0200 |
parents | aadfe9f2edaf |
children | 66049b6f2c0b |
line wrap: on
line diff
--- a/src/menu_tree.asm Wed Aug 31 14:24:29 2016 +0200 +++ b/src/menu_tree.asm Wed Aug 31 14:48:10 2016 +0200 @@ -701,17 +701,17 @@ read_int_eeprom 0x0F movff EEDATA,battery_type; =0:1.5V, =1:3,6V Saft, =2:LiIon 3,7V/0.8Ah, =3:LiIon 3,7V/3.1Ah - incf EEDATA,W - dcfsnz WREG,W + rcall setup_new_saft ; Any other value + incf EEDATA,F + dcfsnz EEDATA,F rcall setup_new_15v ;=0 - dcfsnz WREG,W + dcfsnz EEDATA,F rcall setup_new_saft ;=1 - dcfsnz WREG,W + dcfsnz EEDATA,F rcall setup_new_panasonic ;=2 dcfsnz WREG,W rcall setup_new_18650 ;=3 - rcall setup_new_saft ; Any other value goto power_on_return setup_new_saft: