diff src/logbook.asm @ 601:08a0162d3ca1

Fix false CNS readings in logbook
author heinrichsweikamp
date Tue, 14 Aug 2018 11:01:47 +0200
parents b455b31ce022
children ca4556fb60b9
line wrap: on
line diff
--- a/src/logbook.asm	Sun Aug 12 18:18:41 2018 +0200
+++ b/src/logbook.asm	Tue Aug 14 11:01:47 2018 +0200
@@ -1655,12 +1655,16 @@
 	movff	ext_flash_rw,lo
 	call	ext_flash_byte_read_plus				; read cns high
 	movff	ext_flash_rw,hi
+	bcf	hi,int_warning_flag					; clear warning   flag (fix for cases were the flags already got stored to ext. Flash)
+	bcf	hi,int_attention_flag					; clear attention flag (fix for cases were the flags already got stored to ext. Flash)
 	output_16
 	LOG_POINT_TO log_cns_end
 	STRCAT	"->"
 	call	ext_flash_byte_read_plus				; read CNS low
 	movff	ext_flash_rw,lo
 	call	ext_flash_byte_read_plus				; read CNS high
+	bcf	hi,int_warning_flag					; clear warning   flag (fix for cases were the flags already got stored to ext. Flash)
+	bcf	hi,int_attention_flag					; clear attention flag (fix for cases were the flags already got stored to ext. Flash)
 	movff	ext_flash_rw,hi
 	output_16
 	STRCAT_PRINT "%"