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

faster font display, code cleaning
author heinrichsweikamp
date Sun, 22 Apr 2012 14:38:10 +0200
parents 101fec6a6137
children 1b021a280e15
line wrap: on
line diff
--- a/code_part1/OSTC_code_asm_part1/pled_outputs.asm	Sat Apr 21 15:08:09 2012 +0200
+++ b/code_part1/OSTC_code_asm_part1/pled_outputs.asm	Sun Apr 22 14:38:10 2012 +0200
@@ -373,7 +373,7 @@
 	output_8		
 	call	word_processor
 
-	bcf		switch_left	
+	call	wait_switches		; Waits until switches are released, resets flag if button stays pressed!
 PLED_resetdebugger_loop:
     bcf     LED_blue            ; Blink blue led every seconds..
     btfss   secs,0
@@ -383,7 +383,7 @@
 	bra		PLED_resetdebugger_loop		; Loop
 
     bcf     LED_blue
-	bcf		switch_left	
+	call	wait_switches		; Waits until switches are released, resets flag if button stays pressed!
 	return
 
 PLED_divemode_mask:					; Displays mask in Dive-Mode