missed ==

This commit is contained in:
Jason Short 2011-11-19 14:42:57 -08:00
parent 2d5ee0f7e2
commit b6adfdb62f
1 changed files with 1 additions and 1 deletions

View File

@ -1249,7 +1249,7 @@ static void update_altitude()
baro_alt = (baro_alt + read_barometer()) >> 1; baro_alt = (baro_alt + read_barometer()) >> 1;
// calc the vertical accel rate // calc the vertical accel rate
#if CLIMB_RATE_BARO = 1 #if CLIMB_RATE_BARO == 1
int temp_baro_alt = (barometer._offset_press - barometer.RawPress) << 1; // invert and scale int temp_baro_alt = (barometer._offset_press - barometer.RawPress) << 1; // invert and scale
baro_rate = (temp_baro_alt - old_baro_alt) * 10; baro_rate = (temp_baro_alt - old_baro_alt) * 10;
old_baro_alt = temp_baro_alt; old_baro_alt = temp_baro_alt;