# HG changeset patch
# User heinrichsweikamp
# Date 1313062229 -7200
# Node ID f6cdd0079c36d07ad4d0e844251de634216cf698
# Parent  4c7f304de294abf528f02a44d6a8fbbcc58a12ff
compiler switch for display tester

diff -r 4c7f304de294 -r f6cdd0079c36 code_part1/OSTC_code_asm_part1/definitions.asm
--- a/code_part1/OSTC_code_asm_part1/definitions.asm	Wed Aug 10 21:53:17 2011 +0200
+++ b/code_part1/OSTC_code_asm_part1/definitions.asm	Thu Aug 11 13:30:29 2011 +0200
@@ -36,6 +36,7 @@
 ;#DEFINE	RUSSIAN							; Use russian_text.asm
 
 ;#DEFINE	__DEBUG	; 
+;#DEFINE	DISPLAY_TEST	; Enables Display-Test in RAW data menu
 
 #DEFINE	logbook_profile_version	0x21        ; Do not touch!
 #DEFINE	T0CON_debounce	b'00000000'         ; Timer0 Switch Debounce
@@ -96,8 +97,8 @@
 
 ;=============================================================================
 
-#include "../OSTC_code_c_part2/shared_definitions.h"
-;#include "shared_definitions.h"
+;#include "../OSTC_code_c_part2/shared_definitions.h"
+#include "shared_definitions.h"
 
 ;=============================================================================
 ; Reserve space for C-code data space. Eg.when calling log.
diff -r 4c7f304de294 -r f6cdd0079c36 code_part1/OSTC_code_asm_part1/menu.asm
--- a/code_part1/OSTC_code_asm_part1/menu.asm	Wed Aug 10 21:53:17 2011 +0200
+++ b/code_part1/OSTC_code_asm_part1/menu.asm	Thu Aug 11 13:30:29 2011 +0200
@@ -477,6 +477,11 @@
 
 ; Display blank/red/green/blue screens until click, to test OLED ageing.
 show_rawdata_next:
+	; display test draws more power then allowed -> potential hardware risk!
+#ifndef DISPLAY_TEST
+	bra     show_rawdata_exit
+#endif
+
     setf    WREG
     WIN_BOX_COLOR   .0,.240,.0,.160
     rcall   show_rawdata_screen_wait