ArduCopter: remove unnecessary (probably slightly harmful) extra barometer read
The barometer reads including reading temperature was all moved to a timer but this extra read (originally to read the temperature) was probably forgotten.
This commit is contained in:
parent
b5c1e23549
commit
9052b4152b
@ -1258,12 +1258,6 @@ static void medium_loop()
|
||||
// -----------------------
|
||||
arm_motors();
|
||||
|
||||
// Do an extra baro read for Temp sensing
|
||||
// ---------------------------------------
|
||||
#if HIL_MODE != HIL_MODE_ATTITUDE
|
||||
barometer.read();
|
||||
#endif
|
||||
|
||||
// agmatthews - USERHOOKS
|
||||
#ifdef USERHOOK_MEDIUMLOOP
|
||||
USERHOOK_MEDIUMLOOP
|
||||
|
Loading…
Reference in New Issue
Block a user