diff code_part1/OSTC_code_asm_part1/divemode.asm @ 25:99512945c7a1

1.61 beta rc2
author heinrichsweikamp
date Thu, 13 May 2010 23:24:55 +0200
parents 73014f788032
children 6e5db85382a2
line wrap: on
line diff
--- a/code_part1/OSTC_code_asm_part1/divemode.asm	Mon Apr 26 11:48:17 2010 +0200
+++ b/code_part1/OSTC_code_asm_part1/divemode.asm	Thu May 13 23:24:55 2010 +0200
@@ -1256,6 +1256,9 @@
 	movlw	0xFB
 	call	write_external_eeprom
 	
+	btfsc	simulatormode_active		; Are we in simulator mode?
+	bra		change_logbook_offset2		; Yes, do not update history
+
 	; Increase total dive counter
 	read_int_eeprom 	d'2'		; Read byte (stored in EEDATA)
 	movff	EEDATA,temp1			; Low byte
@@ -1294,8 +1297,8 @@
 	call	write_eeprom			; Highbyte 
 
 change_logbook_offset2:
+	bcf		LED_blue
 	bcf		simulatormode_active		; if we were in simulator mode
-	bcf		LED_blue
 
 end_dive_common:
 	btfsc	restore_deco_data			; Restore decodata?