# HG changeset patch
# User heinrichsweikamp
# Date 1312279176 -7200
# Node ID 1935205424962ff6bb5a7b80f4669304204655c2
# Parent  af2894e5cda48b47c109bdde1a132fde6ca9a083
fix ram banking in "Reset all"

diff -r af2894e5cda4 -r 193520542496 code_part1/OSTC_code_asm_part1/menu_reset.asm
--- a/code_part1/OSTC_code_asm_part1/menu_reset.asm	Wed Jul 20 19:21:21 2011 +0200
+++ b/code_part1/OSTC_code_asm_part1/menu_reset.asm	Tue Aug 02 11:59:36 2011 +0200
@@ -299,7 +299,7 @@
   	clrf		nofly_time+0        	      	; Reset NoFly
   	clrf		nofly_time+1            	  	; Reset NoFly
 	bcf			nofly_active                	; Clear flag
-	goto	restart					; done. quit to surfmode
+	goto		restart							; done. quit to surfmode
 
 do_menu_reset_all:
 	call	PLED_confirmbox				; Returns WREG=0 for Cancel (Or Timeout) and WREG=1 for OK!
@@ -318,6 +318,7 @@
 	call		deco_clear_tissue			; Reset Decodata
 	call		deco_calc_desaturation_time	; calculate desaturation time
 	call		deco_clear_CNS_fraction			; clear CNS
+	movlb		b'00000001'						; select ram bank 1
   	clrf		nofly_time+0    	          	; Reset NoFly
   	clrf		nofly_time+1	              	; Reset NoFly
 	bcf			nofly_active                	; Clear flag