diff --git a/src/drivers/trone/trone.cpp b/src/drivers/trone/trone.cpp index cf35466694..10aee9c8b7 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 */