Mercurial > public > hwos_code
diff src/customview.asm @ 216:973a0969e0ac
NEW: On-board simulator can increase divetime in 5min steps
author | heinrichsweikamp |
---|---|
date | Mon, 15 Dec 2014 19:50:51 +0100 |
parents | efe70488a04b |
children | 94bf757690cf |
line wrap: on
line diff
--- a/src/customview.asm Mon Dec 15 12:50:23 2014 +0100 +++ b/src/customview.asm Mon Dec 15 19:50:51 2014 +0100 @@ -241,7 +241,7 @@ bsf menuview bcf switch_left incf menupos2,F ; Number of options to show - movlw d'6' ; Max number of options in divemode + movlw d'8' ; Max number of options in divemode cpfsgt menupos2 ; Max reached? bra menuview_mask ; No, show global menuview_toggle_reset @@ -274,6 +274,8 @@ bra menuview_view5 dcfsnz WREG,F bra menuview_view6 + dcfsnz WREG,F + bra menuview_view7 menuview_exit: call TFT_standard_color bcf win_invert ; Reset invert flag @@ -329,6 +331,15 @@ bra menuview_toggle ; No, call next option STRCPY_TEXT_PRINT tDivemenu_ResetAvr ; "Reset Avr." bra menuview_exit ; Done. +menuview_view7: + btfss simulatormode_active ; View only for simulator mode + bra menuview_toggle ; Call next option + btfsc FLAG_gauge_mode ; In Gauge mode? + bra menuview_toggle ; Yes, call next option + btfsc FLAG_apnoe_mode ; In Apnoe mode? + bra menuview_toggle ; Yes, call next option + STRCPY_TEXT_PRINT tplus5min ; "Sim:+5mins" + bra menuview_exit ; Done. ;=============================================================================