GSMA version

Dependencies:   FXOS8700CQ mbed

Fork of AvnetATT_shape_hackathon by Rick McConney

Revision:
12:7c94ec5069dc
Parent:
4:f83bedd9cab4
--- a/sensors.h	Tue Jul 12 03:11:05 2016 +0000
+++ b/sensors.h	Tue Jul 12 21:56:51 2016 +0000
@@ -1,3 +1,6 @@
+#ifndef __SENSORS_H_
+#define __SENSORS_H_
+
 void sensors_init(void);
 void read_sensors(void);
 
@@ -20,21 +23,6 @@
     char  Humidity_Si7020[SENSOR_FIELD_LEN_LIMIT];
 } K64F_Sensors_t ;
 
-static K64F_Sensors_t  SENSOR_DATA =
-{
-    .Temperature        = "0",
-    .Humidity           = "0",
-    .AccelX             = "0",
-    .AccelY             = "0",
-    .AccelZ             = "0",
-    .MagnetometerX      = "0",
-    .MagnetometerY      = "0",
-    .MagnetometerZ      = "0",
-    .AmbientLightVis    = "0",
-    .AmbientLightIr     = "0",
-    .UVindex            = "0",
-    .Proximity          = "0",
-    .Temperature_Si7020 = "0",
-    .Humidity_Si7020    = "0"
-};
+extern K64F_Sensors_t  SENSOR_DATA;
 
+#endif
\ No newline at end of file