bugfix store value to d_temp_s and enable debug prints as degfault

This commit is contained in:
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 SICSLOWPAN_CONF_FRAG 1
#define LOOP_INTERVAL (10 * CLOCK_SECOND) #define LOOP_INTERVAL (30 * CLOCK_SECOND)
/* Save energy */ /* Save energy */
//#define RDC_CONF_PT_YIELD_OFF //#define RDC_CONF_PT_YIELD_OFF

View file

@ -132,7 +132,7 @@ void loop (void)
{ {
dsensors.requestTemperatures(); dsensors.requestTemperatures();
// print the device information // print the device information
//printData(outsideThermometer,0); printData(outsideThermometer,0);
htu21d_temp = htu.readTemperature(); htu21d_temp = htu.readTemperature();
htu21d_hum = htu.readHumidity(); htu21d_hum = htu.readHumidity();
@ -141,7 +141,6 @@ void loop (void)
dtostrf(htu21d_hum , 0, 2, htu21d_hum_s ); dtostrf(htu21d_hum , 0, 2, htu21d_hum_s );
// debug only // debug only
// printf("Temp: %s",htu21d_temp_s); printf("Temp: %s",htu21d_temp_s);
// printf("\t\tHum: %s\n",htu21d_hum_s); printf("\t\tHum: %s\n",htu21d_hum_s);
} }