# HG changeset patch
# User heinrichsweikamp
# Date 1334399130 -7200
# Node ID 7f5419d4157de9101329d3e66bb2a71a21fbafd4
# Parent  9d8a2a13f733a99010e395f8b30a5f5a41e84471
timeout for 2nd page of Gas Setup, ceiling allingment

diff -r 9d8a2a13f733 -r 7f5419d4157d code_part1/OSTC_code_asm_part1/changelog.txt
--- a/code_part1/OSTC_code_asm_part1/changelog.txt	Wed Apr 04 01:33:32 2012 +0200
+++ b/code_part1/OSTC_code_asm_part1/changelog.txt	Sat Apr 14 12:25:30 2012 +0200
@@ -1,5 +1,6 @@
 New in 2.22:
 BUGFIX: Missed deco stops issue
+BUGFIX: Timeout for 2nd page of Gas Setup
 
 New in 2.21:
 BUGFIX: GF warning in logbook memory
diff -r 9d8a2a13f733 -r 7f5419d4157d code_part1/OSTC_code_asm_part1/menu_gassetup.asm
--- a/code_part1/OSTC_code_asm_part1/menu_gassetup.asm	Wed Apr 04 01:33:32 2012 +0200
+++ b/code_part1/OSTC_code_asm_part1/menu_gassetup.asm	Sat Apr 14 12:25:30 2012 +0200
@@ -781,6 +781,9 @@
 
 	bcf		onesecupdate	; 1 sec. functions done
 
+	btfsc	sleepmode
+	bra		exit_gassetup
+
 	bra		next_gas_page_loop
 
 next_gas_page2:
diff -r 9d8a2a13f733 -r 7f5419d4157d code_part1/OSTC_code_asm_part1/pled_outputs.asm
--- a/code_part1/OSTC_code_asm_part1/pled_outputs.asm	Wed Apr 04 01:33:32 2012 +0200
+++ b/code_part1/OSTC_code_asm_part1/pled_outputs.asm	Sat Apr 14 12:25:30 2012 +0200
@@ -466,6 +466,7 @@
 	WIN_LEFT	.94
 	WIN_FONT 	FT_MEDIUM
 	WIN_INVERT	.0                      ; Init new Wordprocessor
+	bcf     leftbind
 	PLED_color_code		warn_ceiling    ; Color-code Output
 	lfsr	FSR2,letter
 	movff	char_O_first_deco_depth,lo  ; Ceiling in m
@@ -488,7 +489,6 @@
 	lfsr	FSR2,letter
 	movff	int_O_ascenttime+0,lo       ; TTS
 	movff	int_O_ascenttime+1,hi       ; on 16bits
-	bcf     leftbind
 	output_16
 	STRCAT_PRINT    "'"