diff options
-rw-r--r-- | src/drivers/ll40ls/ll40ls.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/drivers/ll40ls/ll40ls.cpp b/src/drivers/ll40ls/ll40ls.cpp index e68f24152..5119c5c46 100644 --- a/src/drivers/ll40ls/ll40ls.cpp +++ b/src/drivers/ll40ls/ll40ls.cpp @@ -235,7 +235,7 @@ LL40LS::~LL40LS() } 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 @@ -261,7 +261,7 @@ LL40LS::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 */ |