Mercurial > public > hwos_code
diff src/customview.asm @ 503:4542d03f748a
NEW: Last Dive customviews in surface mode with divetime, depth and interval
author | heinrichsweikamp |
---|---|
date | Sun, 11 Jun 2017 17:11:40 +0200 |
parents | 0910c227018f |
children | d339c9e1175d |
line wrap: on
line diff
--- a/src/customview.asm Fri Jun 09 14:47:02 2017 +0200 +++ b/src/customview.asm Sun Jun 11 17:11:40 2017 +0200 @@ -119,7 +119,7 @@ surf_customview_toggle: bcf switch_right incf menupos3,F ; Number of customview to show - movlw d'7' ; Max number of customsviews in surface mode + movlw d'8' ; Max number of customsviews in surface mode cpfsgt menupos3 ; Max reached? bra surf_customview_mask ; No, show movlw .1 @@ -142,10 +142,12 @@ bra surf_customview_init_view4 ; Custom Text dcfsnz WREG,F bra surf_customview_init_view5 ; Tissue Diagram - dcfsnz WREG,F + dcfsnz WREG,F bra surf_customview_init_view6 ; Compass - dcfsnz WREG,F + dcfsnz WREG,F bra surf_customview_init_view7 ; Deco settings + dcfsnz WREG,F + bra surf_customview_init_view8 ; Last Dive info call I2C_sleep_accelerometer ; Stop accelerometer call I2C_sleep_compass ; Stop compass @@ -220,8 +222,9 @@ extern TFT_surface_compass_mask call TFT_surface_compass_mask ; Show compass bra customview_toggle_exit ; Done. + surf_customview_init_view7: - btfsc FLAG_gauge_mode + btfsc FLAG_gauge_mode ; View7: Deco settings bra surf_customview_toggle btfsc FLAG_apnoe_mode bra surf_customview_toggle @@ -230,6 +233,12 @@ call TFT_surface_decosettings ; Show all deco settings bra customview_toggle_exit ; Done. +surf_customview_init_view8: ; View8: Last dive info + call TFT_surface_lastdive ; Show last dive interval + + bra customview_toggle_exit ; Done. + + global menuview_toggle menuview_toggle: ; Show Menu or the simulator tasks movlw divemode_menuview_timeout