comparison src/surfmode.asm @ 564:54346c651b6a

bring digital S8 HUD back to life...
author heinrichsweikamp
date Mon, 05 Feb 2018 17:59:55 +0100
parents b7eb98dbd800
children b455b31ce022
comparison
equal deleted inserted replaced
563:f4faff954816 564:54346c651b6a
145 call TFT_update_batt_voltage ; display battery voltage 145 call TFT_update_batt_voltage ; display battery voltage
146 call TFT_update_surf_press ; display surface pressure 146 call TFT_update_surf_press ; display surface pressure
147 call TFT_temp_surfmode ; Displays temperature 147 call TFT_temp_surfmode ; Displays temperature
148 call TFT_display_decotype_surface 148 call TFT_display_decotype_surface
149 149
150 ; REPLACE ## voting logic
151 ; call compute_ppo2 ; compute mv_sensorX and ppo2_sensorX arrays
152 ; call check_sensors ; Set enable/disable flags
153 ; BY
154 call calc_deko_divemode_sensor 150 call calc_deko_divemode_sensor
155 151
156 movff opt_dive_mode,lo ; 0=OC, 1=CC, 2=Gauge, 3=Apnea, 4=PSCR 152 movff opt_dive_mode,lo ; 0=OC, 1=CC, 2=Gauge, 3=Apnea, 4=PSCR
157 tstfsz lo 153 tstfsz lo
158 bra surfloop_no_oc ; Not OC 154 bra surfloop_no_oc ; Not OC
235 btfss quarter_second_update 231 btfss quarter_second_update
236 bra surfloop_loop2b 232 bra surfloop_loop2b
237 233
238 bcf quarter_second_update 234 bcf quarter_second_update
239 235
240 ; Update Sensors 236 call calc_deko_divemode_sensor
241 ; REPLACE ## voting logic
242 ; call compute_ppo2 ; compute mv_sensorX and ppo2_sensorX arrays
243 ; call check_sensors ; Set enable/disable flags
244 ; BY
245 call calc_deko_divemode_sensor
246 237
247 btfsc FLAG_ccr_mode ; In CCR mode? 238 btfsc FLAG_ccr_mode ; In CCR mode?
248 bra surfloop_loop2a1 ; Yes. 239 bra surfloop_loop2a1 ; Yes.
249 btfss FLAG_pscr_mode ; In PSCR mode? 240 btfss FLAG_pscr_mode ; In PSCR mode?
250 bra surfloop_loop2a ; No, skip 241 bra surfloop_loop2a ; No, skip