Mercurial > public > hwos_code
comparison src/surfmode.asm @ 375:a9e35c1327aa
1.88 release, BUGFIX: Start with Sensor use from sleep (cR only), CHANGE: Apply button settings when button menu is closed, NEW: Reset button settings on a magnet reset (cR and OSTC 2)
author | heinrichsweikamp |
---|---|
date | Thu, 27 Aug 2015 17:05:13 +0200 |
parents | 043890f06bce |
children | 6f3530eb48f9 |
comparison
equal
deleted
inserted
replaced
374:67c258bd34e3 | 375:a9e35c1327aa |
---|---|
87 clrf ext_flash_address+1 | 87 clrf ext_flash_address+1 |
88 clrf ext_flash_address+2 | 88 clrf ext_flash_address+2 |
89 | 89 |
90 movlw surface_sp ; in cbar | 90 movlw surface_sp ; in cbar |
91 call transmit_setpoint ; Transmit current setpoint from WREG (in cbar) to external electronics | 91 call transmit_setpoint ; Transmit current setpoint from WREG (in cbar) to external electronics |
92 btfsc rechargeable | |
93 call piezo_config ; Configure buttons | |
94 | 92 |
95 clrf timeout_counter2 | 93 clrf timeout_counter2 |
96 clrf timeout_counter3 | 94 clrf timeout_counter3 |
97 bcf menubit ; clear menu flag | 95 bcf menubit ; clear menu flag |
98 clrf last_pressure+0 | 96 clrf last_pressure+0 |
144 call get_battery_voltage ; get battery voltage | 142 call get_battery_voltage ; get battery voltage |
145 call TFT_update_batt_voltage ; display battery voltage | 143 call TFT_update_batt_voltage ; display battery voltage |
146 call TFT_update_surf_press ; display surface pressure | 144 call TFT_update_surf_press ; display surface pressure |
147 call TFT_temp_surfmode ; Displays temperature | 145 call TFT_temp_surfmode ; Displays temperature |
148 call TFT_display_decotype_surface | 146 call TFT_display_decotype_surface |
147 call compute_ppo2 ; compute mv_sensorX and ppo2_sensorX arrays | |
148 call check_sensors ; Set enable/disable flags | |
149 | 149 |
150 movff opt_dive_mode,lo ; 0=OC, 1=CC, 2=Gauge, 3=Apnea | 150 movff opt_dive_mode,lo ; 0=OC, 1=CC, 2=Gauge, 3=Apnea |
151 tstfsz lo | 151 tstfsz lo |
152 bra surfloop_no_oc ; Not OC | 152 bra surfloop_no_oc ; Not OC |
153 call TFT_show_OC_startgas_surface; Show first gas and "OSTC2-like" active gases | 153 call TFT_show_OC_startgas_surface; Show first gas and "OSTC2-like" active gases |