nrf51 temp sensor return from temp*100 and some docs fixes
#include <tsl2561.h>
static bool isl29035 = false;
-// remove tmp006 when the capsule is fixed!!!
+// TODO: modify tmp006 to comply with the generic temperature interface
+// and then remove tmp006!!!
static bool tmp006 = false;
static bool tsl2561 = false;
static bool lps25hb = false;
@@ -28,7 +29,7 @@ static void timer_fired(__attribute__ ((unused)) int arg0,
int16_t tmp006_temp = 0;
int tsl2561_lux = 0;
int lps25hb_pressure = 0;
- int temp_ambient = 0;
+ int temp = 0;
unsigned humi = 0;
int ninedof_x = 0, ninedof_y = 0, ninedof_z = 0;
@@ -37,7 +38,7 @@ static void timer_fired(__attribute__ ((unused)) int arg0,
if (tmp006) tmp006_read_sync(&tmp006_temp);
if (tsl2561) tsl2561_lux = tsl2561_get_lux_sync();
if (lps25hb) lps25hb_pressure = lps25hb_get_pressure_sync();
- if (temperature) temperature_read_sync(&temp_ambient);
+ if (temperature) temperature_read_sync(&temp);
if (humidity) humidity_read_sync(&humi);
if (ninedof) ninedof_read_acceleration_sync(&ninedof_x, &ninedof_y, &ninedof_z);
@@ -45,7 +46,7 @@ static void timer_fired(__attribute__ ((unused)) int arg0,
if (tmp006) printf("TMP006: Temperature: %d\n", tmp006_temp);
if (tsl2561) printf("TSL2561: Light: %d lux\n", tsl2561_lux);
if (lps25hb) printf("LPS25HB: Pressure: %d\n", lps25hb_pressure);
- if (temp_ambient) printf("Temperature ambient: %d deg C\n", temp_ambient/100);
+ if (temp) printf("Temperature: %d deg C\n", temp/100);
if (humi) printf("Humidity: %u%%\n", humi/100);
if (ninedof) printf("FXOS8700CQ: X: %d\n", ninedof_x);
if (ninedof) printf("FXOS8700CQ: Y: %d\n", ninedof_y);
