diff code_part1/OSTC_code_asm_part1/pled_outputs.asm @ 141:622da16b768f

LowBatt! Warning in divemode
author heinrichsweikamp
date Thu, 06 Jan 2011 18:36:22 +0100
parents 87a53efbb5ba
children 8b75ba28d641
line wrap: on
line diff
--- a/code_part1/OSTC_code_asm_part1/pled_outputs.asm	Thu Jan 06 18:12:15 2011 +0100
+++ b/code_part1/OSTC_code_asm_part1/pled_outputs.asm	Thu Jan 06 18:36:22 2011 +0100
@@ -1568,7 +1568,8 @@
 PLED_nofly_time:	
 	movff		nofly_time+0,lo			
 	movff		nofly_time+1,hi					; Copy
-	tstfsz		lo								; =0?
+	movlw		d'1'	
+	cpfseq		lo								; =1?
 	bra			PLED_nofly_time2				; No!
 	tstfsz		hi								; =0?
 	bra			PLED_nofly_time2				; No!
@@ -1625,6 +1626,10 @@
 	return
 
 update_batt_voltage_divemode:
+	call	PLED_warnings_color
+	DISPLAYTEXT		d'246'		; LowBatt!
+	call	PLED_standard_color
+	return
 
 update_batt_voltage:
 	ostc_debug	'f'