bugfix store value to d_temp_s and enable debug prints as degfault
This commit is contained in:
parent
dca85a7b6b
commit
5e15ec6488
|
@ -38,7 +38,7 @@
|
|||
|
||||
#define SICSLOWPAN_CONF_FRAG 1
|
||||
|
||||
#define LOOP_INTERVAL (10 * CLOCK_SECOND)
|
||||
#define LOOP_INTERVAL (30 * CLOCK_SECOND)
|
||||
|
||||
/* Save energy */
|
||||
//#define RDC_CONF_PT_YIELD_OFF
|
||||
|
|
|
@ -132,7 +132,7 @@ void loop (void)
|
|||
{
|
||||
dsensors.requestTemperatures();
|
||||
// print the device information
|
||||
//printData(outsideThermometer,0);
|
||||
printData(outsideThermometer,0);
|
||||
|
||||
htu21d_temp = htu.readTemperature();
|
||||
htu21d_hum = htu.readHumidity();
|
||||
|
@ -141,7 +141,6 @@ void loop (void)
|
|||
dtostrf(htu21d_hum , 0, 2, htu21d_hum_s );
|
||||
|
||||
// debug only
|
||||
// printf("Temp: %s",htu21d_temp_s);
|
||||
// printf("\t\tHum: %s\n",htu21d_hum_s);
|
||||
|
||||
printf("Temp: %s",htu21d_temp_s);
|
||||
printf("\t\tHum: %s\n",htu21d_hum_s);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue