forked from Archive/PX4-Autopilot
TeraRange One: move to 0 based index
This commit is contained in:
parent
e90f00aaf1
commit
bd6945ba70
|
@ -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 */
|
||||
|
|
Loading…
Reference in New Issue