forked from Archive/PX4-Autopilot
L3GD20: Move to 0 based index
This commit is contained in:
parent
fac158f7e5
commit
8b6ce797b4
|
@ -445,7 +445,7 @@ L3GD20::~L3GD20()
|
|||
delete _reports;
|
||||
|
||||
if (_class_instance != -1)
|
||||
unregister_class_devname(GYRO_DEVICE_PATH, _class_instance);
|
||||
unregister_class_devname(GYRO_BASE_DEVICE_PATH, _class_instance);
|
||||
|
||||
/* delete the perf counter */
|
||||
perf_free(_sample_perf);
|
||||
|
@ -469,7 +469,7 @@ L3GD20::init()
|
|||
if (_reports == nullptr)
|
||||
goto out;
|
||||
|
||||
_class_instance = register_class_devname(GYRO_DEVICE_PATH);
|
||||
_class_instance = register_class_devname(GYRO_BASE_DEVICE_PATH);
|
||||
|
||||
reset();
|
||||
|
||||
|
|
Loading…
Reference in New Issue