diff src/logbook.asm @ 98:24b3fd59e61f

add event "bailout" in profile
author heinrichsweikamp
date Thu, 01 May 2014 21:16:31 +0200
parents c34516c99ca8
children 87cc1adfe4da
line wrap: on
line diff
--- a/src/logbook.asm	Mon Apr 28 16:26:31 2014 +0200
+++ b/src/logbook.asm	Thu May 01 21:16:31 2014 +0200
@@ -1232,6 +1232,15 @@
 	call		ext_flash_byte_read_plus_0x20			; Read Event byte
 	movff		temp1,EventByte				; store EventByte
 	decf		timeout_counter2,F			; reduce counter
+
+    btfss       EventByte,7                 ; Another Event byte?
+    bra         profile_no_second_eventbyte ; No
+    call		ext_flash_byte_read_plus_0x20; Read Event byte2
+    movff		temp1,EventByte2			; store EventByte2
+	decf		timeout_counter2,F			; reduce counter
+    bcf         EventByte,7                 ; Clear flag
+
+profile_no_second_eventbyte:
 ; Check Event flags in the EventByte
 	btfsc		EventByte,4					; Manual Gas Changed?
 	bra			logbook_event1				; Yes!