aboutsummaryrefslogtreecommitdiff
path: root/src/drivers/trone
diff options
context:
space:
mode:
authorLorenz Meier <lm@inf.ethz.ch>2015-02-03 13:49:45 +0100
committerLorenz Meier <lm@inf.ethz.ch>2015-02-09 22:56:23 +0100
commitbd6945ba70dc287054a51eb9cc9a9430c041910d (patch)
tree3bda484b605c0de11f32073ca0c0ba46d4cf599b /src/drivers/trone
parente90f00aaf11c6da18ab623b3fdcf2cfd1e678526 (diff)
downloadpx4-firmware-bd6945ba70dc287054a51eb9cc9a9430c041910d.tar.gz
px4-firmware-bd6945ba70dc287054a51eb9cc9a9430c041910d.tar.bz2
px4-firmware-bd6945ba70dc287054a51eb9cc9a9430c041910d.zip
TeraRange One: move to 0 based index
Diffstat (limited to 'src/drivers/trone')
-rw-r--r--src/drivers/trone/trone.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/drivers/trone/trone.cpp b/src/drivers/trone/trone.cpp
index cf3546669..10aee9c8b 100644
--- a/src/drivers/trone/trone.cpp
+++ b/src/drivers/trone/trone.cpp
@@ -258,7 +258,7 @@ TRONE::~TRONE()
}
if (_class_instance != -1) {
- unregister_class_devname(RANGE_FINDER_DEVICE_PATH, _class_instance);
+ unregister_class_devname(RANGE_FINDER_BASE_DEVICE_PATH, _class_instance);
}
// free perf counters
@@ -284,7 +284,7 @@ TRONE::init()
goto out;
}
- _class_instance = register_class_devname(RANGE_FINDER_DEVICE_PATH);
+ _class_instance = register_class_devname(RANGE_FINDER_BASE_DEVICE_PATH);
if (_class_instance == CLASS_DEVICE_PRIMARY) {
/* get a publish handle on the range finder topic */