Improve printing further

This commit is contained in:
BlackMark 2020-04-01 04:07:50 +02:00
parent db2d8f6931
commit 45eafd9fc3

View File

@ -107,7 +107,7 @@ class Terminal {
char floatBuffer[16]; char floatBuffer[16];
sprintf(floatBuffer, "%.2f", Controller::m_adcSample); sprintf(floatBuffer, "%.2f", Controller::m_adcSample);
m_serial << F("ADC value ...: ") << floatBuffer << F("/1023") << ENDL; m_serial << F("ADC value ...: ") << floatBuffer << F(" / 1023") << ENDL;
sprintf(floatBuffer, "%.2f", Controller::m_resistance); sprintf(floatBuffer, "%.2f", Controller::m_resistance);
m_serial << F("Resistance ..: ") << floatBuffer << F(" Ohm") << ENDL; m_serial << F("Resistance ..: ") << floatBuffer << F(" Ohm") << ENDL;
sprintf(floatBuffer, "%.2f", Controller::m_temperature); sprintf(floatBuffer, "%.2f", Controller::m_temperature);