From ea3f4cc3e488e543f3635d03702eec1ec746fcb9 Mon Sep 17 00:00:00 2001 From: Trey Marc Date: Fri, 6 Jun 2014 12:53:31 +0200 Subject: [PATCH] Update mw.c do not include serial nor telemetry handler in cycletime calculation --- src/mw.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/mw.c b/src/mw.c index 45ffaf3e2b..32197bae27 100755 --- a/src/mw.c +++ b/src/mw.c @@ -824,12 +824,12 @@ void loop(void) loopTime = currentTime + mcfg.looptime; computeIMU(); - annexCode(); // Measure loop rate just afer reading the sensors currentTime = micros(); cycleTime = (int32_t)(currentTime - previousTime); previousTime = currentTime; - + // non IMU critical, temeperatur, serialcom + annexCode(); #ifdef MAG if (sensors(SENSOR_MAG)) { if (abs(rcCommand[YAW]) < 70 && f.MAG_MODE) {