Browse Source

Prevent incorrect rescheduling for BMP280 baro dummy ut_delay (#612)

(cherry picked from commit 79fdc6d392)
master
Martin Budden 8 years ago
committed by Konstantin (DigitalEntity) Sharlaimov
parent
commit
2735df29ed
  1. 6
      src/main/fc/mw.c

6
src/main/fc/mw.c

@ -726,8 +726,10 @@ void taskUpdateCompass(void)
void taskUpdateBaro(void)
{
if (sensors(SENSOR_BARO)) {
uint32_t newDeadline = baroUpdate();
rescheduleTask(TASK_SELF, newDeadline);
const uint32_t newDeadline = baroUpdate();
if (newDeadline != 0) {
rescheduleTask(TASK_SELF, newDeadline);
}
}
//updatePositionEstimator_BaroTopic(currentTime);

Loading…
Cancel
Save