comparison src/customview.asm @ 39:e4e91fe8b09d

remember last customview in dive and surface mode
author mh@mh-THINK.fritz.box
date Thu, 15 Aug 2013 13:55:55 +0200
parents 11d4fc797f74
children 5041477eee79
comparison
equal deleted inserted replaced
38:64976f1e0a1c 39:e4e91fe8b09d
274 movlw d'6' ; Max number of customsviews in divemode 274 movlw d'6' ; Max number of customsviews in divemode
275 cpfsgt menupos3 ; Max reached? 275 cpfsgt menupos3 ; Max reached?
276 bra customview_mask ; No, show 276 bra customview_mask ; No, show
277 customview_toggle_reset: ; Timeout occured 277 customview_toggle_reset: ; Timeout occured
278 clrf menupos3 ; Reset to zero (Zero=no custom view) 278 clrf menupos3 ; Reset to zero (Zero=no custom view)
279 global customview_mask
279 customview_mask: 280 customview_mask:
280 call TFT_clear_customview_divemode 281 call TFT_clear_customview_divemode
281 WIN_SMALL divemode_customview_column,divemode_customview_row 282 WIN_SMALL divemode_customview_column,divemode_customview_row
282 call TFT_standard_color 283 call TFT_standard_color
283 movff menupos3,WREG ; Menupos3 holds number of customview function 284 movff menupos3,WREG ; Menupos3 holds number of customview function