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.
This commit is contained in:
Stefan Schmidt 2013-04-11 11:21:07 +01:00
parent 61dbbbb451
commit 7ccc9f20ba
1 changed files with 1 additions and 1 deletions

View File

@ -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 */