Mercurial > public > hwos_code
diff src/divemode.asm @ 601:08a0162d3ca1
Fix false CNS readings in logbook
author | heinrichsweikamp |
---|---|
date | Tue, 14 Aug 2018 11:01:47 +0200 |
parents | bf0c76e9b01b |
children | ca4556fb60b9 |
line wrap: on
line diff
--- a/src/divemode.asm Sun Aug 12 18:18:41 2018 +0200 +++ b/src/divemode.asm Tue Aug 14 11:01:47 2018 +0200 @@ -2171,7 +2171,8 @@ movff int_O_CNS_fraction+0,CNS_start+0 ; save CNS value at beginning of dive movff int_O_CNS_fraction+1,WREG ; get high byte to WREG - bcf WREG,int_warning_flag ; clear warning flag bit + bcf WREG,int_warning_flag ; clear warning flag + bcf WREG,int_attention_flag ; clear attention flag movff WREG,CNS_start+1 ; move high byte on movff int_O_gradient_factor+0,GF_start ; save GF value at beginning of dive (only lower byte used for value)