diff src/comm.asm @ 356:fcf3ae0fee6a

Changed content for new 0x6F command (Get compact headers)
author heinrichsweikamp
date Sun, 02 Aug 2015 09:52:28 +0200
parents 043890f06bce
children 57e349960ef4
line wrap: on
line diff
--- a/src/comm.asm	Fri Jul 31 17:44:03 2015 +0200
+++ b/src/comm.asm	Sun Aug 02 09:52:28 2015 +0200
@@ -608,16 +608,20 @@
 	bra		comm_send_compact_headers_loop
 	call	ext_flash_read_block_stop
 
+    ; Offset to total dive counter
+	movlw	.80
+	movwf	ext_flash_address+0
+    call	ext_flash_read_block_start	; 1st byte
+    movwf	TXREG1
+    rcall	comm_rs232_wait_tx			; Wait for UART
+	call	ext_flash_read_block		; 2nd byte
+	movwf	TXREG1
+    call	ext_flash_read_block_stop
+    rcall	comm_rs232_wait_tx				; Wait for UART
+
     movlw   0xFF    ; Spare
     movwf   TXREG1
     rcall	comm_rs232_wait_tx				; Wait for UART
-    movlw   0xFF    ; Spare
-    movwf   TXREG1
-    rcall	comm_rs232_wait_tx				; Wait for UART
-    movlw   0xFF    ; Spare
-    movwf   TXREG1
-    rcall	comm_rs232_wait_tx				; Wait for UART
-
 	bra		comm_send_compact_headers2		; continue