comparison src/surfmode.asm @ 234:57155164faad

Show OSTC2-like active gas boxes in surface mode
author heinrichsweikamp
date Wed, 25 Feb 2015 13:57:30 +0100
parents b6edf9bb8e3b
children 23311219dacc
comparison
equal deleted inserted replaced
233:b6edf9bb8e3b 234:57155164faad
141 call get_battery_voltage ; get battery voltage 141 call get_battery_voltage ; get battery voltage
142 call TFT_update_batt_voltage ; display battery voltage 142 call TFT_update_batt_voltage ; display battery voltage
143 call TFT_update_surf_press ; display surface pressure 143 call TFT_update_surf_press ; display surface pressure
144 call TFT_temp_surfmode ; Displays temperature 144 call TFT_temp_surfmode ; Displays temperature
145 call TFT_display_decotype_surface 145 call TFT_display_decotype_surface
146
146 movff opt_dive_mode,lo ; 0=OC, 1=CC, 2=Gauge, 3=Apnea 147 movff opt_dive_mode,lo ; 0=OC, 1=CC, 2=Gauge, 3=Apnea
147 tstfsz lo 148 tstfsz lo
148 bra surfloop_no_oc ; Not OC 149 bra surfloop_no_oc ; Not OC
149 WIN_SMALL surf_decotype_column+.1,surf_decotype_row+.30 150 call TFT_show_OC_startgas_surface; Show first gas and "OSTC2-like" active gases
150 extern get_first_gas_to_WREG,gaslist_strcat_gas
151 call get_first_gas_to_WREG ; Gets first gas (0-4) into WREG
152 movwf PRODL
153 call gaslist_strcat_gas ; Input: PRODL : gas number (0..4), Output: Text appended into buffer pointed by FSR2.
154 STRCAT_PRINT ""
155 surfloop_no_oc: 151 surfloop_no_oc:
156 movff customview_surfmode,menupos3 ; Reload last customview 152 movff customview_surfmode,menupos3 ; Reload last customview
157 call surf_customview_mask ; Update #menupos3 view 153 call surf_customview_mask ; Update #menupos3 view
158 154
159 call TFT_Display_FadeIn ; Display resulting surface screen. 155 call TFT_Display_FadeIn ; Display resulting surface screen.