Mercurial > public > hwos_code
diff src/ghostwriter.asm @ 490:8dfb93e80338
NEW: Deep Sleep mode for OSTC Plus and OSTC 2 (2017) (Entered automatically)
NEW: Logbook detail page in larger font (And nicer layout)
CHANGE: Sleep mode current slightly reduced for all hwOS devices
NEW: Logbook now records battery information
NEW: Markers in internal logbook drawn as small "m" next to the profile
author | heinrichsweikamp |
---|---|
date | Wed, 29 Mar 2017 21:35:12 +0200 |
parents | ad8acade5567 |
children | 4542d03f748a |
line wrap: on
line diff
--- a/src/ghostwriter.asm Mon Mar 27 16:06:09 2017 +0200 +++ b/src/ghostwriter.asm Wed Mar 29 21:35:12 2017 +0200 @@ -634,10 +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, =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 rcall ghostwrite_byte_header ; WREG -> Header in ext. flash ; Store 5 Setpoints movff char_I_setpoint_cbar+0,WREG