comparison src/surfmode.asm @ 487:5c7bee6df71c

minor
author heinrichsweikamp
date Mon, 13 Mar 2017 15:34:09 +0100
parents 18e047102e49
children bef07a837a60
comparison
equal deleted inserted replaced
486:1c35fc2e0834 487:5c7bee6df71c
180 btfss onesecupdate ; do every second tasks? 180 btfss onesecupdate ; do every second tasks?
181 bra surfloop_loop2 ; no, loop 181 bra surfloop_loop2 ; no, loop
182 182
183 ; One Second tasks for all modes 183 ; One Second tasks for all modes
184 call speed_normal 184 call speed_normal
185 call TFT_debug_output 185 ;call TFT_debug_output
186 call TFT_clock ; update clock 186 call TFT_clock ; update clock
187 call timeout_surfmode ; check timeout 187 call timeout_surfmode ; check timeout
188 call get_battery_voltage ; get battery voltage 188 call get_battery_voltage ; get battery voltage
189 call TFT_update_batt_voltage ; display battery voltage 189 call TFT_update_batt_voltage ; display battery voltage
190 call set_dive_modes ; tests if depth>threshold 190 call set_dive_modes ; tests if depth>threshold
196 bcf onesecupdate ; every second tasks done 196 bcf onesecupdate ; every second tasks done
197 197
198 surfloop_loop2: 198 surfloop_loop2:
199 ; Tasks approx. every 50ms for all modes 199 ; Tasks approx. every 50ms for all modes
200 call test_switches_surfmode ; check switches 200 call test_switches_surfmode ; check switches
201 call TFT_debug_output
201 202
202 ; One minute tasks for all modes 203 ; One minute tasks for all modes
203 btfsc oneminupdate ; do every minute tasks 204 btfsc oneminupdate ; do every minute tasks
204 call update_surfloop60 ; yes, e.g. update time and date 205 call update_surfloop60 ; yes, e.g. update time and date
205 206