bugfix store value to d_temp_s and enable debug prints as degfault

master
Harald Pichler 2017-05-04 16:29:55 +02:00
parent dca85a7b6b
commit 5e15ec6488
2 changed files with 4 additions and 5 deletions

View File

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

View File

@ -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);
}