diff src/comm.asm @ 110:d39493c786a2

BUGFIX: OSTC settings via USB issues
author heinrichsweikamp
date Tue, 10 Jun 2014 10:14:18 +0200
parents 53a99a2dc6a1
children f3062a611eef
line wrap: on
line diff
--- a/src/comm.asm	Thu Jun 05 11:53:21 2014 +0200
+++ b/src/comm.asm	Tue Jun 10 10:14:18 2014 +0200
@@ -922,6 +922,8 @@
     bra     comm_read_compass_gain          ; RCREG1=0x34
     dcfsnz  WREG
     bra     comm_read_pressure_adjust       ; RCREG1=0x35
+    dcfsnz  WREG
+    bra     comm_read_safety_stop           ; RCREG1=0x36
 
 
 
@@ -1148,6 +1150,11 @@
     movff   opt_pressure_adjust, TXREG1
     rcall   comm_read_setting_wait          ; Wait for UART
     bra		comm_download_mode0             ; Done. Loop with timeout reset
+comm_read_safety_stop:
+    movff   opt_enable_safetystop, TXREG1
+    rcall   comm_read_setting_wait          ; Wait for UART
+    bra		comm_download_mode0             ; Done. Loop with timeout reset
+
 
 ;-----------------------------------------------------------------------------
 
@@ -1267,6 +1274,8 @@
     bra     comm_write_compass_gain          ; RCREG1=0x34
     dcfsnz  WREG
     bra     comm_write_pressure_adjust       ; RCREG1=0x35
+    dcfsnz  WREG
+    bra     comm_write_safety_stop           ; RCREG1=0x36
 
 comm_write_unused:
 comm_write_abort:
@@ -1505,6 +1514,10 @@
     call	rs232_get_byte
     movff   RCREG1, opt_pressure_adjust
     bra		comm_write_abort             ; Done. Loop with timeout reset
+comm_write_safety_stop:
+    call	rs232_get_byte
+    movff   RCREG1, opt_enable_safetystop
+    bra		comm_write_abort             ; Done. Loop with timeout reset
 
 ;-----------------------------------------------------------------------------