From 7ccc9f20ba6a5fd56edf22129c955f0a9238233e Mon Sep 17 00:00:00 2001 From: Stefan Schmidt Date: Thu, 11 Apr 2013 11:21:07 +0100 Subject: [PATCH] eeze/sensor: Use Eeze_Sensor_Type in sensor object. We use the typedef everywhere else. This makes sure we also use it in the struct to avoid any confusion. The API is new for upcoming 1.8 release so no problem in changing it now. --- src/lib/eeze/Eeze_Sensor.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/eeze/Eeze_Sensor.h b/src/lib/eeze/Eeze_Sensor.h index 8402604..9825203 100644 --- a/src/lib/eeze/Eeze_Sensor.h +++ b/src/lib/eeze/Eeze_Sensor.h @@ -142,7 +142,7 @@ EAPI int EEZE_SENSOR_EVENT_TEMPERATURE; */ typedef struct _Eeze_Sensor_Obj { - unsigned int type; /**< Sensor type see #Eeze_Sensor_Type */ + Eeze_Sensor_Type type; /**< Sensor type see #Eeze_Sensor_Type */ int accuracy; /**< Accuracy of the sensor value */ float data[3]; /**< Sensor data depending on the sensor type */ unsigned long long timestamp; /**< Timestamp of data read */ -- 2.7.4