stefan pushed a commit to branch master.
commit 7ccc9f20ba6a5fd56edf22129c955f0a9238233e
Author: Stefan Schmidt <[email protected]>
Date: Thu Apr 11 11:21:07 2013 +0100
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 */
--
------------------------------------------------------------------------------
Precog is a next-generation analytics platform capable of advanced
analytics on semi-structured data. The platform includes APIs for building
apps and a phenomenal toolset for data science. Developers can use
our toolset for easy data analysis & visualization. Get a free account!
http://www2.precog.com/precogplatform/slashdotnewsletter