drivers: use driver class instance as surrogate sensor ID for gyro and accelerometer

This commit is contained in:
Paul Riseborough
2017-01-19 19:24:52 +01:00
committed by Lorenz Meier
parent 60c12aaa36
commit e84a189380
6 changed files with 20 additions and 19 deletions
+2 -2
View File
@@ -1075,8 +1075,8 @@ L3GD20::measure()
report.scaling = _gyro_range_scale;
report.range_rad_s = _gyro_range_rad_s;
/* TODO return unique hardware ID */
report.device_id = 0;
/* Return class instance as a surrogate device ID */
report.device_id = _class_instance;
_reports->force(&report);