Mercurial > public > hwos_code
diff src/comm.asm @ 92:7ca1105751c7
add sensor calibration option (PC only), some cleanup
author | heinrichsweikamp |
---|---|
date | Wed, 16 Apr 2014 22:31:09 +0200 |
parents | 8e13866b5496 |
children | 53a99a2dc6a1 |
line wrap: on
line diff
--- a/src/comm.asm Tue Apr 15 15:08:16 2014 +0200 +++ b/src/comm.asm Wed Apr 16 22:31:09 2014 +0200 @@ -627,7 +627,7 @@ call rs232_get_byte btfsc rs232_recieve_overflow ; Got byte? return ; No, abort! - rcall comm_check_day ; Check day + call comm_check_day ; Check day call rs232_get_byte btfsc rs232_recieve_overflow ; Got byte? return ; No, abort! @@ -920,6 +920,8 @@ bra comm_read_date_format ; RCREG1=0x33 dcfsnz WREG bra comm_read_compass_gain ; RCREG1=0x34 + dcfsnz WREG + bra comm_read_pressure_adjust ; RCREG1=0x35 @@ -1142,6 +1144,10 @@ movff opt_compass_gain, TXREG1 rcall comm_read_setting_wait ; Wait for UART bra comm_download_mode0 ; Done. Loop with timeout reset +comm_read_pressure_adjust: + movff opt_pressure_adjust, TXREG1 + rcall comm_read_setting_wait ; Wait for UART + bra comm_download_mode0 ; Done. Loop with timeout reset ;----------------------------------------------------------------------------- @@ -1259,6 +1265,8 @@ bra comm_write_date_format ; RCREG1=0x33 dcfsnz WREG bra comm_write_compass_gain ; RCREG1=0x34 + dcfsnz WREG + bra comm_write_pressure_adjust ; RCREG1=0x35 comm_write_unused: comm_write_abort: @@ -1493,6 +1501,10 @@ call rs232_get_byte movff RCREG1, opt_compass_gain bra comm_write_abort ; Done. Loop with timeout reset +comm_write_pressure_adjust: + call rs232_get_byte + movff RCREG1, opt_pressure_adjust + bra comm_write_abort ; Done. Loop with timeout reset ;-----------------------------------------------------------------------------