Mercurial > public > hwos_code
diff src/options.asm @ 533:dfac393b2199
CHANGE: CCR Calibration gas range limited to O2% 21-25 and 95-100 to save button presses
Layout adjustsments in divemode (CCR ppO2(Dil)
author | heinrichsweikamp |
---|---|
date | Mon, 21 Aug 2017 14:55:36 +0200 |
parents | a5fc007634c5 |
children | b7eb98dbd800 |
line wrap: on
line diff
--- a/src/options.asm Mon Aug 21 14:25:02 2017 +0200 +++ b/src/options.asm Mon Aug 21 14:55:36 2017 +0200 @@ -395,7 +395,20 @@ movf opt_min,W option_inc_1: movwf INDF1 + + ; Now some rather crude hack into this routine to make CCR Calibration more convenient: + movlw .149 ; eeprom address of option CalGasO2 + cpfseq opt_eeprom ; skip next line if we deal with this option right now return + + btfsc FLAG_pscr_mode ; skip next line if we are not in PSCR mode + return + movlw .26 + cpfseq INDF1 ; skip next line if current option value is =26 + return + movlw .95 ; current option value =26, advance it to 95 + movwf INDF1 + return option_inc_enum8: ; Always +1 incf INDF1,W