nanotool: Add humidity sensor support
Change-Id: I171c52d2accd2a3baecd58f78f2b3785f2b8e876
Signed-off-by: Armando Visconti <armando.visconti@st.com>
diff --git a/util/nanotool/contexthub.cpp b/util/nanotool/contexthub.cpp
index b4fe1c2..7a3df87 100644
--- a/util/nanotool/contexthub.cpp
+++ b/util/nanotool/contexthub.cpp
@@ -72,6 +72,7 @@
{ SensorType::Activity, "activity" },
{ SensorType::Vsync, "vsync" },
{ SensorType::WristTilt, "wrist_tilt" },
+ { SensorType::Humidity, "humidity" },
};
struct SensorTypeAlias {
diff --git a/util/nanotool/contexthub.h b/util/nanotool/contexthub.h
index 1ea0c8a..8dfce26 100644
--- a/util/nanotool/contexthub.h
+++ b/util/nanotool/contexthub.h
@@ -70,6 +70,7 @@
Vsync,
CompressedAccel,
WristTilt = 39,
+ Humidity = 61,
Max_
};
diff --git a/util/nanotool/sensorevent.cpp b/util/nanotool/sensorevent.cpp
index 7befb9a..5f09505 100644
--- a/util/nanotool/sensorevent.cpp
+++ b/util/nanotool/sensorevent.cpp
@@ -55,6 +55,7 @@
case SensorType::Temperature:
case SensorType::AmbientLightSensor:
case SensorType::Proximity:
+ case SensorType::Humidity:
sensor_event = new SingleAxisSensorEvent();
break;