Improve measurement output

This commit is contained in:
BlackMark 2020-04-01 04:00:59 +02:00
parent 48cfdea11d
commit db2d8f6931

View File

@ -107,9 +107,9 @@ class Terminal {
char floatBuffer[16]; char floatBuffer[16];
sprintf(floatBuffer, "%.2f", Controller::m_adcSample); sprintf(floatBuffer, "%.2f", Controller::m_adcSample);
m_serial << F("Read ADC ....: ") << floatBuffer << 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 << ENDL; m_serial << F("Resistance ..: ") << floatBuffer << F(" Ohm") << ENDL;
sprintf(floatBuffer, "%.2f", Controller::m_temperature); sprintf(floatBuffer, "%.2f", Controller::m_temperature);
m_serial << F("Temperature .: ") << floatBuffer << F(" C") << ENDL; m_serial << F("Temperature .: ") << floatBuffer << F(" C") << ENDL;
m_serial << F("Fan speed ...: ") << Controller::m_fanSpeed << F("%") << ENDL; m_serial << F("Fan speed ...: ") << Controller::m_fanSpeed << F("%") << ENDL;