# HG changeset patch
# User heinrichsweikamp
# Date 1359213919 -3600
# Node ID a8a36c85e031296af46eb747f558ae85b953a605
# Parent  8ffbd5cb4b423a4d0fb9b50b1f8e08db81039ed9
ignore screenshots with display1 (for now)

diff -r 8ffbd5cb4b42 -r a8a36c85e031 code_part1/OSTC_code_asm_part1/display_lowlevel.asm
--- a/code_part1/OSTC_code_asm_part1/display_lowlevel.asm	Sat Jan 26 14:36:26 2013 +0100
+++ b/code_part1/OSTC_code_asm_part1/display_lowlevel.asm	Sat Jan 26 16:25:19 2013 +0100
@@ -764,6 +764,9 @@
 ; NOTE: you should "setf TRISD" before calling this function,
 ;       to make PortD an input port...
 DISP_DataRead:
+    movff   win_flags,WREG          ; Display1? win_flags is in bank0...
+    btfsc   WREG,1                  ; Display1?
+    return                          ; Yes, done.
 	bsf		DISPLAY_rs					; Data register.
 	bcf		DISPLAY_e_nwr              ; Read enable.
 	nop
diff -r 8ffbd5cb4b42 -r a8a36c85e031 code_part1/OSTC_code_asm_part1/dump_screen.asm
--- a/code_part1/OSTC_code_asm_part1/dump_screen.asm	Sat Jan 26 14:36:26 2013 +0100
+++ b/code_part1/OSTC_code_asm_part1/dump_screen.asm	Sat Jan 26 16:25:19 2013 +0100
@@ -45,7 +45,9 @@
 	bsf		    LED_blue                ; LEDusb ON
 	call		rs232_wait_tx           ; wait for UART
 
-    call        dump_screen_0
+    movff       win_flags,WREG          ; BEWARE: bank0 bit-test
+    btfss       WREG,1                  ; Display1?
+    call        dump_screen_0           ; No, dump screen
 
 	bcf		    no_sensor_int           ; Restore Sensor Interrupt
 	bcf			LED_blue                ; Clear led