Mercurial > public > hwos_code
comparison 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 |
comparison
equal
deleted
inserted
replaced
449:850c1f3c4824 | 450:791a25c4aab4 |
---|---|
699 read_int_eeprom 0x0C | 699 read_int_eeprom 0x0C |
700 movff EEDATA,battery_gauge+5 | 700 movff EEDATA,battery_gauge+5 |
701 read_int_eeprom 0x0F | 701 read_int_eeprom 0x0F |
702 movff EEDATA,battery_type; =0:1.5V, =1:3,6V Saft, =2:LiIon 3,7V/0.8Ah, =3:LiIon 3,7V/3.1Ah | 702 movff EEDATA,battery_type; =0:1.5V, =1:3,6V Saft, =2:LiIon 3,7V/0.8Ah, =3:LiIon 3,7V/3.1Ah |
703 | 703 |
704 incf EEDATA,W | 704 rcall setup_new_saft ; Any other value |
705 dcfsnz WREG,W | 705 incf EEDATA,F |
706 dcfsnz EEDATA,F | |
706 rcall setup_new_15v ;=0 | 707 rcall setup_new_15v ;=0 |
707 dcfsnz WREG,W | 708 dcfsnz EEDATA,F |
708 rcall setup_new_saft ;=1 | 709 rcall setup_new_saft ;=1 |
709 dcfsnz WREG,W | 710 dcfsnz EEDATA,F |
710 rcall setup_new_panasonic ;=2 | 711 rcall setup_new_panasonic ;=2 |
711 dcfsnz WREG,W | 712 dcfsnz WREG,W |
712 rcall setup_new_18650 ;=3 | 713 rcall setup_new_18650 ;=3 |
713 | 714 |
714 rcall setup_new_saft ; Any other value | |
715 goto power_on_return | 715 goto power_on_return |
716 | 716 |
717 setup_new_saft: | 717 setup_new_saft: |
718 banksel battery_capacity | 718 banksel battery_capacity |
719 movlw LOW internal_saft_capacity | 719 movlw LOW internal_saft_capacity |