comparison src/ms5541.asm @ 178:39f6c07ce2f6

BUGFIX: Average depth computation
author heinrichsweikamp
date Tue, 07 Oct 2014 13:45:21 +0200
parents 7ca1105751c7
children ad62dff7739a
comparison
equal deleted inserted replaced
177:67db1f6d3787 178:39f6c07ce2f6
167 addwf isr_xC+1,F 167 addwf isr_xC+1,F
168 movlw .0 168 movlw .0
169 addwfc isr_xC+2,F 169 addwfc isr_xC+2,F
170 170
171 pressure_extra_common: 171 pressure_extra_common:
172 banksel common 172 banksel common ; flag2 is in bank 1
173 btfss simulatormode_active ; are we in simulator mode? 173 btfss simulatormode_active ; are we in simulator mode?
174 bra calc_compensation_2 ; no 174 bra calc_compensation_2 ; no
175 banksel isr_backup
176 175
177 movff sim_pressure+0,isr_xC+1 ; override readings with simulator values 176 movff sim_pressure+0,isr_xC+1 ; override readings with simulator values
178 movff sim_pressure+1,isr_xC+2 177 movff sim_pressure+1,isr_xC+2
179 178
180 calc_compensation_2: 179 calc_compensation_2: