diff code_part1/OSTC_code_asm_part1/altimeter.asm @ 576:ab2686087bce

faster font display, code cleaning
author heinrichsweikamp
date Sun, 22 Apr 2012 14:38:10 +0200
parents 6e57b5bb98ce
children 6e456a6398e0
line wrap: on
line diff
--- a/code_part1/OSTC_code_asm_part1/altimeter.asm	Sat Apr 21 15:08:09 2012 +0200
+++ b/code_part1/OSTC_code_asm_part1/altimeter.asm	Sun Apr 22 14:38:10 2012 +0200
@@ -300,8 +300,7 @@
 
 alt_menu_loop:
         call        PLED_menu_cursor    ; Display cursor
-    	bcf		    switch_left         ; reset buttons state
-    	bcf		    switch_right
+		call		wait_switches		; Waits until switches are released, resets flag if button stays pressed!
 
 alt_menu_loop1:                         ; Wait for button.
     	btfsc	uart_dump_screen        ; Asked to dump screen contains ?