mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-06-28 11:10:36 +08:00
L3GD20: Move to 0 based index
This commit is contained in:
@@ -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();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user