Mercurial > public > hwos_code
diff src/divemode.asm @ 521:06e9370c6d75
CHANGE: Apply safety margin parameters to both models (GF and non-GF)
Put B?hlmann constants in code for readability
Fix unused gas warning (Do not warn)
author | heinrichsweikamp |
---|---|
date | Fri, 04 Aug 2017 16:01:28 +0200 |
parents | 2ef8cf6b320d |
children | 0d1cda9f2d43 |
line wrap: on
line diff
--- a/src/divemode.asm Fri Aug 04 13:41:29 2017 +0200 +++ b/src/divemode.asm Fri Aug 04 16:01:28 2017 +0200 @@ -1651,7 +1651,7 @@ movff int_O_CNS_fraction+0,CNS_start+0 movff int_O_CNS_fraction+1,CNS_start+1 ; Save CNS value at beginning of dive - movff char_O_relative_gradient_GF,GF_start ; Save GF value at beginning of dive + movff char_O_gradient_factor,GF_start ; Save GF value at beginning of dive return ; Done with divemode boot divemode_check_for_warnings: @@ -1905,9 +1905,6 @@ global check_and_store_gf_violation check_and_store_gf_violation: movff char_O_gradient_factor,lo ; gradient factor absolute (Non-GF model) - movff char_I_deco_model,hi - decfsz hi,F ; jump over next line if char_I_deco_model == 1 - movff char_O_relative_gradient_GF,lo ; gradient factor relative (GF model) movlw gf_warning_high cpfsgt lo