aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Gubler <thomasgubler@gmail.com>2014-02-16 12:27:05 +0100
committerThomas Gubler <thomasgubler@gmail.com>2014-02-16 12:27:05 +0100
commit978cac499207c08398d195d68934262aa43057f0 (patch)
tree6aec376af73fa66c0990aa36c56fd06b4c1bf474
parent08f1e6a9dc86c03015cb2a83dc94c3412d6d9eb4 (diff)
parent1be3ea4f4eac121a627c194fefbf202586f6f66f (diff)
downloadpx4-firmware-978cac499207c08398d195d68934262aa43057f0.tar.gz
px4-firmware-978cac499207c08398d195d68934262aa43057f0.tar.bz2
px4-firmware-978cac499207c08398d195d68934262aa43057f0.zip
Merge pull request #672 from PX4/hotfix_mpu6000
MPU6000: gyro topic was not initialized
-rw-r--r--src/drivers/mpu6000/mpu6000.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/drivers/mpu6000/mpu6000.cpp b/src/drivers/mpu6000/mpu6000.cpp
index bf80c9cff..ac75682c4 100644
--- a/src/drivers/mpu6000/mpu6000.cpp
+++ b/src/drivers/mpu6000/mpu6000.cpp
@@ -1353,6 +1353,7 @@ MPU6000::print_info()
MPU6000_gyro::MPU6000_gyro(MPU6000 *parent) :
CDev("MPU6000_gyro", MPU_DEVICE_PATH_GYRO),
_parent(parent),
+ _gyro_topic(-1),
_gyro_class_instance(-1)
{
}