diff options
author | Lorenz Meier <lm@inf.ethz.ch> | 2015-02-03 13:50:15 +0100 |
---|---|---|
committer | Lorenz Meier <lm@inf.ethz.ch> | 2015-02-09 22:56:24 +0100 |
commit | 1eb4ec6ec9cba16337c5157a9395b9b51efff50f (patch) | |
tree | 8ec0a73d57acdad8a009ea3bc016b5c6ee37f78c /src/drivers/mpu6000/mpu6000.cpp | |
parent | 5a2692cf3af2d2b05e29c6f5530abf8cbe0801c8 (diff) | |
download | px4-firmware-1eb4ec6ec9cba16337c5157a9395b9b51efff50f.tar.gz px4-firmware-1eb4ec6ec9cba16337c5157a9395b9b51efff50f.tar.bz2 px4-firmware-1eb4ec6ec9cba16337c5157a9395b9b51efff50f.zip |
MPU6K: Move to 0 based indices
Diffstat (limited to 'src/drivers/mpu6000/mpu6000.cpp')
-rw-r--r-- | src/drivers/mpu6000/mpu6000.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/drivers/mpu6000/mpu6000.cpp b/src/drivers/mpu6000/mpu6000.cpp index 1c4dfb89e..4aa05a980 100644 --- a/src/drivers/mpu6000/mpu6000.cpp +++ b/src/drivers/mpu6000/mpu6000.cpp @@ -563,7 +563,7 @@ MPU6000::~MPU6000() delete _gyro_reports; if (_accel_class_instance != -1) - unregister_class_devname(ACCEL_DEVICE_PATH, _accel_class_instance); + unregister_class_devname(ACCEL_BASE_DEVICE_PATH, _accel_class_instance); /* delete the perf counter */ perf_free(_sample_perf); @@ -624,7 +624,7 @@ MPU6000::init() return ret; } - _accel_class_instance = register_class_devname(ACCEL_DEVICE_PATH); + _accel_class_instance = register_class_devname(ACCEL_BASE_DEVICE_PATH); measure(); @@ -1824,7 +1824,7 @@ MPU6000_gyro::MPU6000_gyro(MPU6000 *parent, const char *path) : MPU6000_gyro::~MPU6000_gyro() { if (_gyro_class_instance != -1) - unregister_class_devname(GYRO_DEVICE_PATH, _gyro_class_instance); + unregister_class_devname(GYRO_BASE_DEVICE_PATH, _gyro_class_instance); } int @@ -1841,7 +1841,7 @@ MPU6000_gyro::init() return ret; } - _gyro_class_instance = register_class_devname(GYRO_DEVICE_PATH); + _gyro_class_instance = register_class_devname(GYRO_BASE_DEVICE_PATH); return ret; } |