nanohub: drivers/hts221: Remove unused code
Removed SENSOR_DO_NOTHING state which is no longer used and
modifed DEC_INFO() macro with a shorter list of params.
Change-Id: Ib9967973dfea565d29fcd5ff98ac4732bb845da4
Signed-off-by: Armando Visconti <armando.visconti@st.com>
diff --git a/firmware/os/drivers/st_hts221/hts221.c b/firmware/os/drivers/st_hts221/hts221.c
index 4900323..3163c3c 100644
--- a/firmware/os/drivers/st_hts221/hts221.c
+++ b/firmware/os/drivers/st_hts221/hts221.c
@@ -107,7 +107,6 @@
SENSOR_HUMIDITY_POWER_UP,
SENSOR_HUMIDITY_POWER_DOWN,
SENSOR_READ_SAMPLES,
- SENSOR_DO_NOTHING,
};
#ifndef HTS221_I2C_BUS_ID
@@ -270,15 +269,13 @@
osEnqueuePrivateEvt(EVT_SENSOR_HUMIDITY_TIMER, data, NULL, mTask.tid);
}
-#define DEC_INFO(name, type, axis, inter, samples, rates, raw, scale) \
+#define DEC_INFO(name, type, axis, inter, samples, rates) \
.sensorName = name, \
.sensorType = type, \
.numAxis = axis, \
.interrupt = inter, \
.minSamples = samples, \
- .supportedRates = rates, \
- .rawType = raw, \
- .rawScale = scale
+ .supportedRates = rates
static uint32_t hts221Rates[] = {
SENSOR_HZ(1.0f),
@@ -299,7 +296,7 @@
static const struct SensorInfo hts221SensorInfo[NUM_OF_SENSOR] =
{
{ DEC_INFO("Humidity", SENS_TYPE_HUMIDITY, NUM_AXIS_EMBEDDED, NANOHUB_INT_NONWAKEUP,
- 300, hts221Rates, 0, 0) },
+ 300, hts221Rates) },
};
/* Sensor Operations */
@@ -446,7 +443,6 @@
break;
- case SENSOR_DO_NOTHING:
default:
break;
}