df_mpu9250_wrapper: use the elapsed counter

This commit is contained in:
Julian Oes
2016-04-25 12:48:48 +02:00
committed by Lorenz Meier
parent 20e494410a
commit 84c87696fe
@@ -505,6 +505,8 @@ int DfMpu9250Wrapper::_publish(struct imu_sensor_data &data)
return 0;
}
perf_begin(_publish_perf);
_publish_count = 0;
// TODO: get these right
@@ -552,6 +554,8 @@ int DfMpu9250Wrapper::_publish(struct imu_sensor_data &data)
DevMgr::updateNotify(*this);
}
perf_end(_publish_perf);
// TODO: check the return codes of this function
return 0;
};