bugfix compile error tostrf

This commit is contained in:
Harald Pichler 2016-05-20 09:11:11 +02:00
parent abc5db04b2
commit 9a2494583d

View file

@ -53,7 +53,7 @@ void loop (void)
htu21d_hum = htu.readHumidity();
mcu_sleep_on();
dtostrf(htu21d_temp , 6, 2, htu21d_temp_s );
tostrf(htu21d_hum , 6, 2, htu21d_hum_s );
dtostrf(htu21d_hum , 6, 2, htu21d_hum_s );
// remove space
if(htu21d_temp_s[0]==' '){
memcpy (htu21d_temp_s,htu21d_temp_s+1,strlen(htu21d_temp_s)+1);