Mercurial > public > hwos_code
diff src/isr.asm @ 178:39f6c07ce2f6
BUGFIX: Average depth computation
author | heinrichsweikamp |
---|---|
date | Tue, 07 Oct 2014 13:45:21 +0200 |
parents | 3fdafedc24af |
children | 669b5d00706d |
line wrap: on
line diff
--- a/src/isr.asm Tue Oct 07 08:42:38 2014 +0200 +++ b/src/isr.asm Tue Oct 07 13:45:21 2014 +0200 @@ -362,15 +362,6 @@ rrcf amb_pressure_avg+1 ; amb_pressure sum / 4 rrcf amb_pressure_avg+0 -; ; Even more averaging -; movf amb_pressure_avg+0,W -; addwf amb_pressure+0 -; movf amb_pressure_avg+1,W -; addwfc amb_pressure+1 -; bcf STATUS,C ; clear carry bit -; rrcf amb_pressure+1 ; amb_pressure sum / 2 -; rrcf amb_pressure+0 - movff amb_pressure_avg+1,amb_pressure+1 ; copy into actual register movff amb_pressure_avg+0,amb_pressure+0