In this thread I suggested replacing this:
snprintf(t_str, sizeof(t_str), "%.2f", t);
snprintf(h_str, sizeof(h_str), "%.2f", h);
with this (the float is a temperature and humidity, the spacing is for formatting under the comment):
/*float*/, /*float.width*/, /*decimals*/, /*buffer*/);
dtostrf( t , 5 , 2 , t_str );
dtostrf( h , 5 , 2 , h_str );
to resolve snprintf()
not supporting %f... but is dtostrf()
bad code?
And... what code chunk isn't complete without a SIMULATION