comparison src/tft_outputs.asm @ 99:87cc1adfe4da

show event "bailout" in the internal logbook
author heinrichsweikamp
date Fri, 02 May 2014 14:13:35 +0200
parents 24b3fd59e61f
children 37275e0fa7f5
comparison
equal deleted inserted replaced
98:24b3fd59e61f 99:87cc1adfe4da
3727 global adjust_depth_with_salinity 3727 global adjust_depth_with_salinity
3728 adjust_depth_with_salinity: ; computes salinity setting into lo:hi [mbar] 3728 adjust_depth_with_salinity: ; computes salinity setting into lo:hi [mbar]
3729 btfsc simulatormode_active ; Do apply salinity in Simulatormode 3729 btfsc simulatormode_active ; Do apply salinity in Simulatormode
3730 return 3730 return
3731 3731
3732 global adjust_depth_with_salinity_log
3732 movff opt_salinity,WREG ; 0-5% 3733 movff opt_salinity,WREG ; 0-5%
3734 adjust_depth_with_salinity_log: ; computes salinity setting (FROM WREG!) into lo:hi [mbar]
3733 addlw d'100' ; 1.00kg/l 3735 addlw d'100' ; 1.00kg/l
3734 movwf wait_temp 3736 movwf wait_temp
3735 3737
3736 movlw d'105' ; 105% ? 3738 movlw d'105' ; 105% ?
3737 cpfslt wait_temp ; Salinity higher limit 3739 cpfslt wait_temp ; Salinity higher limit