Mercurial > public > hwos_code
comparison src/surfmode.asm @ 232:fe9d88fee09f
show start gas in OC mode permanently
author | mh@mh-THINK |
---|---|
date | Sun, 22 Feb 2015 12:14:03 -0400 |
parents | f6548e8f06f5 |
children | b6edf9bb8e3b |
comparison
equal
deleted
inserted
replaced
231:834e1c35160c | 232:fe9d88fee09f |
---|---|
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 movff opt_dive_mode,lo ; 0=OC, 1=CC, 2=Gauge, 3=Apnea | |
147 tstfsz lo | |
148 bra surfloop_no_oc ; Not OC | |
149 WIN_TINY surf_decotype_column+.18,surf_decotype_row+.12 | |
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: | |
146 movff customview_surfmode,menupos3 ; Reload last customview | 156 movff customview_surfmode,menupos3 ; Reload last customview |
147 call surf_customview_mask ; Update #menupos3 view | 157 call surf_customview_mask ; Update #menupos3 view |
148 | 158 |
149 call TFT_Display_FadeIn ; Display resulting surface screen. | 159 call TFT_Display_FadeIn ; Display resulting surface screen. |
150 | 160 |