comparison 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
comparison
equal deleted inserted replaced
489:22092d14fd8c 490:8dfb93e80338
632 rcall ghostwrite_byte_header ; WREG -> Header in ext. flash 632 rcall ghostwrite_byte_header ; WREG -> Header in ext. flash
633 movf hi,W 633 movf hi,W
634 rcall ghostwrite_byte_header ; WREG -> Header in ext. flash 634 rcall ghostwrite_byte_header ; WREG -> Header in ext. flash
635 635
636 ; Battery info at Byte 59 636 ; Battery info at Byte 59
637 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
638 swapf lo,F
639 movf batt_percent,W ; 0-100 637 movf batt_percent,W ; 0-100
640 addwf lo,W ; upper 4 bits: battery_type, lower 4 bits: batt_percent
641 rcall ghostwrite_byte_header ; WREG -> Header in ext. flash 638 rcall ghostwrite_byte_header ; WREG -> Header in ext. flash
642 ; Store 5 Setpoints 639 ; Store 5 Setpoints
643 movff char_I_setpoint_cbar+0,WREG 640 movff char_I_setpoint_cbar+0,WREG
644 rcall ghostwrite_byte_header ; Setpoint in cbar 641 rcall ghostwrite_byte_header ; Setpoint in cbar
645 movff char_I_setpoint_change+0,WREG 642 movff char_I_setpoint_change+0,WREG