mirror of
https://github.com/apache/nuttx.git
synced 2025-12-11 04:47:47 +08:00
drivers/sensor: add new sensot type to align android sensor type
new sensor type: SENSOR_TEMPERATURE SENSOR_TYPE_ACCELEROMETER_UNCALIBRATED SENSOR_TYPE_GYROSCOPE_UNCALIBRATED SENSOR_TYPE_MAGNETIC_FILED_UNCALIBRATED refs: https://cs.android.com/android/_/android/platform/hardware/libhardware/+/ 0e67aa0caee9500b61b9c1c8b6e5cab18301364c:include_all/hardware/sensors-base.h Signed-off-by: dongjiuzhu1 <dongjiuzhu1@xiaomi.com>
This commit is contained in:
@@ -973,7 +973,6 @@ int ds18b20_register(int devno, FAR struct onewire_master_s *onewire,
|
||||
#endif
|
||||
tmp->lower.ops = &g_ds18b20_ops;
|
||||
tmp->lower.type = SENSOR_TYPE_AMBIENT_TEMPERATURE;
|
||||
tmp->lower.uncalibrated = false;
|
||||
tmp->lower.nbuffer = 1;
|
||||
ret = sensor_register(&tmp->lower, devno);
|
||||
if (ret < 0)
|
||||
|
||||
Reference in New Issue
Block a user