Mercurial > public > hwos_code
diff src/ghostwriter.asm @ 601:08a0162d3ca1
Fix false CNS readings in logbook
author | heinrichsweikamp |
---|---|
date | Tue, 14 Aug 2018 11:01:47 +0200 |
parents | b455b31ce022 |
children | ca4556fb60b9 |
line wrap: on
line diff
--- a/src/ghostwriter.asm Sun Aug 12 18:18:41 2018 +0200 +++ b/src/ghostwriter.asm Tue Aug 14 11:01:47 2018 +0200 @@ -279,6 +279,8 @@ movff int_O_CNS_fraction+0,WREG rcall ghostwrite_byte_profile ; WREG -> Profile in ext. Flash movff int_O_CNS_fraction+1,WREG + bcf WREG,int_warning_flag ; clear warning flag + bcf WREG,int_attention_flag ; clear attention flag rcall ghostwrite_byte_profile ; WREG -> Profile in ext. Flash movlw div_cns movwf divisor_cns ; Reload divisor from CF @@ -723,6 +725,8 @@ movff int_O_CNS_fraction+0,WREG ; copy into bank1 rcall ghostwrite_byte_header ; Stores CNS% movff int_O_CNS_fraction+1,WREG ; copy into bank1 + bcf WREG,int_warning_flag ; clear warning flag + bcf WREG,int_attention_flag ; clear attention flag rcall ghostwrite_byte_header ; Stores CNS% movff avg_rel_pressure_total+0,WREG ; Average Depth