From fe62c259e89d88dc8393ef15f27eea5b411f12b7 Mon Sep 17 00:00:00 2001
From: Lorenz Meier <lm@inf.ethz.ch>
Date: Fri, 19 Aug 2016 11:09:44 +0200
Subject: [PATCH] Fix MPU6K initialization

---
 src/drivers/mpu6000/mpu6000.cpp | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/src/drivers/mpu6000/mpu6000.cpp b/src/drivers/mpu6000/mpu6000.cpp
index 1d7ec1cfe5..a3816e67ef 100644
--- a/src/drivers/mpu6000/mpu6000.cpp
+++ b/src/drivers/mpu6000/mpu6000.cpp
@@ -474,8 +474,10 @@ MPU6000::MPU6000(device::Device *interface, const char *path_accel, const char *
 	_product(0),
 #if defined(USE_I2C)
 	_work {},
-#endif
 	_use_hrt(false),
+#else
+	_use_hrt(true),
+#endif
 	_call {},
 	_call_interval(0),
 	_accel_reports(nullptr),
-- 
GitLab