diff options
author | Lorenz Meier <lm@inf.ethz.ch> | 2015-02-03 13:46:52 +0100 |
---|---|---|
committer | Lorenz Meier <lm@inf.ethz.ch> | 2015-02-09 22:56:22 +0100 |
commit | 8b6ce797b4130741623367fc3aeb6058522d33e6 (patch) | |
tree | 77d80dad1eed6146fd891af3dd0b474d8da8fa00 /src/drivers/l3gd20 | |
parent | fac158f7e5d794fa55be5585419f65f54dd43683 (diff) | |
download | px4-firmware-8b6ce797b4130741623367fc3aeb6058522d33e6.tar.gz px4-firmware-8b6ce797b4130741623367fc3aeb6058522d33e6.tar.bz2 px4-firmware-8b6ce797b4130741623367fc3aeb6058522d33e6.zip |
L3GD20: Move to 0 based index
Diffstat (limited to 'src/drivers/l3gd20')
-rw-r--r-- | src/drivers/l3gd20/l3gd20.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/drivers/l3gd20/l3gd20.cpp b/src/drivers/l3gd20/l3gd20.cpp index 547bb6868..304b5657d 100644 --- a/src/drivers/l3gd20/l3gd20.cpp +++ b/src/drivers/l3gd20/l3gd20.cpp @@ -445,7 +445,7 @@ L3GD20::~L3GD20() delete _reports; if (_class_instance != -1) - unregister_class_devname(GYRO_DEVICE_PATH, _class_instance); + unregister_class_devname(GYRO_BASE_DEVICE_PATH, _class_instance); /* delete the perf counter */ perf_free(_sample_perf); @@ -469,7 +469,7 @@ L3GD20::init() if (_reports == nullptr) goto out; - _class_instance = register_class_devname(GYRO_DEVICE_PATH); + _class_instance = register_class_devname(GYRO_BASE_DEVICE_PATH); reset(); |