comparison 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
comparison
equal deleted inserted replaced
600:cb59872ad53d 601:08a0162d3ca1
2169 movff hours,start_hours 2169 movff hours,start_hours
2170 movff mins,start_mins 2170 movff mins,start_mins
2171 2171
2172 movff int_O_CNS_fraction+0,CNS_start+0 ; save CNS value at beginning of dive 2172 movff int_O_CNS_fraction+0,CNS_start+0 ; save CNS value at beginning of dive
2173 movff int_O_CNS_fraction+1,WREG ; get high byte to WREG 2173 movff int_O_CNS_fraction+1,WREG ; get high byte to WREG
2174 bcf WREG,int_warning_flag ; clear warning flag bit 2174 bcf WREG,int_warning_flag ; clear warning flag
2175 bcf WREG,int_attention_flag ; clear attention flag
2175 movff WREG,CNS_start+1 ; move high byte on 2176 movff WREG,CNS_start+1 ; move high byte on
2176 movff int_O_gradient_factor+0,GF_start ; save GF value at beginning of dive (only lower byte used for value) 2177 movff int_O_gradient_factor+0,GF_start ; save GF value at beginning of dive (only lower byte used for value)
2177 2178
2178 bcf no_more_divesecs ; =1: do no longer show seconds in divemode 2179 bcf no_more_divesecs ; =1: do no longer show seconds in divemode
2179 bcf divemode_menu_active 2180 bcf divemode_menu_active