Mercurial > public > hwos_code
diff src/ghostwriter.asm @ 472:4fdf6886004b
CHANGE: Show warnings either in Customview (If active) _or_ next to warning sign
NEW: Show battery type in information menu (T0:1.5V AA, T1:3.6V AA, T2:3.6V/0.8A LiIon, T3:Internal 18650, T4:Internal 16650)
author | heinrichsweikamp |
---|---|
date | Sun, 18 Dec 2016 18:20:39 +0100 |
parents | b4417044a042 |
children | ad8acade5567 |
line wrap: on
line diff
--- a/src/ghostwriter.asm Sun Dec 11 14:43:56 2016 +0100 +++ b/src/ghostwriter.asm Sun Dec 18 18:20:39 2016 +0100 @@ -634,7 +634,7 @@ rcall ghostwrite_byte_header ; WREG -> Header in ext. flash ; Battery info at Byte 59 - movff battery_type,lo ; =0:1.5V, =1:3,6V Saft, =2:LiIon 3,7V/0.8Ah, =3:LiIon 3,7V/3.1Ah + movff battery_type,lo ; =0:1.5V, =1:3,6V Saft, =2:LiIon 3,7V/0.8Ah, =3:LiIon 3,7V/3.1Ah, =4: LiIon 3,7V/2.3Ah swapf lo,F movf batt_percent,W ; 0-100 addwf lo,W ; upper 4 bits: battery_type, lower 4 bits: batt_percent @@ -1062,7 +1062,7 @@ write_int_eeprom 0x0B movff battery_gauge+5,EEDATA write_int_eeprom 0x0C - movff battery_type,EEDATA ; =0:1.5V, =1:3,6V Saft, =2:LiIon 3,7V/0.8Ah, =3:LiIon 3,7V/3.1Ah + movff battery_type,EEDATA ; =0:1.5V, =1:3,6V Saft, =2:LiIon 3,7V/0.8Ah, =3:LiIon 3,7V/3.1Ah, =4: LiIon 3,7V/2.3Ah write_int_eeprom 0x0F return