From 433ad19335f84075484abdfb5f4e14e50fd1483b Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Wed, 11 Dec 2013 14:57:13 +1100 Subject: [PATCH] AP_InertialSensor: fixed loop limits stops pointless operations --- libraries/AP_InertialSensor/AP_InertialSensor_PX4.cpp | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/libraries/AP_InertialSensor/AP_InertialSensor_PX4.cpp b/libraries/AP_InertialSensor/AP_InertialSensor_PX4.cpp index 96eb33924c..29be4230fe 100644 --- a/libraries/AP_InertialSensor/AP_InertialSensor_PX4.cpp +++ b/libraries/AP_InertialSensor/AP_InertialSensor_PX4.cpp @@ -65,8 +65,10 @@ void AP_InertialSensor_PX4::_set_filter_frequency(uint8_t filter_hz) if (filter_hz == 0) { filter_hz = _default_filter_hz; } - for (uint8_t i=0; i