altos: Make sure pa to altitude conversion is done with 32 bits
authorKeith Packard <keithp@keithp.com>
Mon, 10 Dec 2012 02:27:49 +0000 (18:27 -0800)
committerKeith Packard <keithp@keithp.com>
Mon, 10 Dec 2012 02:27:49 +0000 (18:27 -0800)
commitdefd5d0784a754be30e3295067fbc85a108ad172
tree891a08c4ea8f0eaad39b46cae64fb2a0f212c14f
parent24948ea1d41f2a7c96ac09e35d1250909e5726ae
altos: Make sure pa to altitude conversion is done with 32 bits

We need 32 bits to hold intermediate values, even if the final
altitude is reported in only 16 bits.

Signed-off-by: Keith Packard <keithp@keithp.com>
src/core/ao_convert_pa.c
src/micropeak/ao_pins.h