MB12xx: move to 0 based index

This commit is contained in:
Lorenz Meier 2015-02-03 13:50:01 +01:00
parent bd6945ba70
commit 5a2692cf3a
1 changed files with 2 additions and 2 deletions

View File

@ -235,7 +235,7 @@ MB12XX::~MB12XX()
}
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 */
@ -264,7 +264,7 @@ MB12XX::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 */