HMC5883: Move to 0-based index

This commit is contained in:
Lorenz Meier 2015-02-03 13:45:51 +01:00
parent 24d1a9b955
commit c9957903e9
1 changed files with 2 additions and 2 deletions

View File

@ -386,7 +386,7 @@ HMC5883::~HMC5883()
delete _reports;
if (_class_instance != -1)
unregister_class_devname(MAG_DEVICE_PATH, _class_instance);
unregister_class_devname(MAG_BASE_DEVICE_PATH, _class_instance);
// free perf counters
perf_free(_sample_perf);
@ -415,7 +415,7 @@ HMC5883::init()
/* reset the device configuration */
reset();
_class_instance = register_class_devname(MAG_DEVICE_PATH);
_class_instance = register_class_devname(MAG_BASE_DEVICE_PATH);
ret = OK;
/* sensor is ok, but not calibrated */