diff code_part1/OSTC_code_asm_part1/divemode.asm @ 2:d11ef8dc4b2c

Bugfix: PC simulator
author heinrichsweikamp
date Wed, 20 Jan 2010 15:17:37 +0100
parents 96a35aeda5f2
children 3cf8af30b36e
line wrap: on
line diff
--- a/code_part1/OSTC_code_asm_part1/divemode.asm	Tue Jan 12 16:07:28 2010 +0100
+++ b/code_part1/OSTC_code_asm_part1/divemode.asm	Wed Jan 20 15:17:37 2010 +0100
@@ -153,10 +153,15 @@
 	btfsc	store_sample					; store new sample?
 	call	store_dive_data					; Store profile data
 
-	btfss	menubit							; Sleep only with inactive menu...
+	btfsc	menubit							; Sleep only with inactive menu...
+	bra		diveloop_loop4
+
+	btfsc	simulatormode_active			; Do not sleep in Simualtor mode
+	bra		diveloop_loop4
+
 	sleep
-	
 	nop
+diveloop_loop4:
 	bra		diveloop_loop					; Loop the divemode
 
 timeout_premenu_divemode: