changeset 444:f6cdd0079c36

compiler switch for display tester
author heinrichsweikamp
date Thu, 11 Aug 2011 13:30:29 +0200
parents 4c7f304de294
children 6e57b5bb98ce
files code_part1/OSTC_code_asm_part1/definitions.asm code_part1/OSTC_code_asm_part1/menu.asm
diffstat 2 files changed, 8 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- 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.
--- 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