spelling: correct many misspellings of celsius

Signed-off-by: Jon Trulson <jtrulson@ics.com>
This commit is contained in:
Jon Trulson
2016-07-12 16:50:39 -06:00
parent 0fb56356fb
commit baec9966f0
49 changed files with 144 additions and 141 deletions

View File

@ -34,7 +34,7 @@
using namespace upm;
using namespace std;
// conversion from fahrenheit to celcius and back
// conversion from fahrenheit to celsius and back
static float f2c(float f)
{
@ -56,7 +56,7 @@ T8100::T8100(uint32_t targetDeviceObjectID) :
checkReliability(false);
m_isTempInitialized = false;
m_isCelcius = false;
m_isCelsius = false;
m_humidity = 0.0;
m_temperature = 0.0;
@ -78,7 +78,7 @@ void T8100::update()
float tmpF = getAnalogInput(AI_Temperature_Thermistor);
if (m_isCelcius)
if (m_isCelsius)
m_temperature = tmpF;
else
m_temperature = f2c(tmpF);
@ -101,7 +101,7 @@ void T8100::setTemperatureScale(bool fahrenheit)
setBinaryValue(BV_Temperature_Units, fahrenheit);
m_isTempInitialized = true;
m_isCelcius = (fahrenheit) ? false : true;
m_isCelsius = (fahrenheit) ? false : true;
}
bool T8100::getTemperatureScale()
@ -109,7 +109,7 @@ bool T8100::getTemperatureScale()
bool scale = getBinaryValue(BV_Temperature_Units);
m_isTempInitialized = true;
m_isCelcius = !scale;
m_isCelsius = !scale;
return scale;
}
@ -126,7 +126,7 @@ void T8100::setTemperatureOffset(float value)
{
throw std::out_of_range(std::string(__FUNCTION__)
+ ": value must be between -50 and 50,"
+ " in degrees Celcius");
+ " in degrees Celsius");
}

View File

@ -167,9 +167,9 @@ namespace upm {
* prior to calling this method.
*
* @param fahrenheit true to return the temperature in degrees
* fahrenheit, false to return the temperature in degrees celcius.
* The default is false (degrees Celcius).
* @return The last temperature reading in Celcius or Fahrenheit.
* fahrenheit, false to return the temperature in degrees celsius.
* The default is false (degrees Celsius).
* @return The last temperature reading in Celsius or Fahrenheit.
*/
float getTemperature(bool fahrenheit=false);
@ -186,20 +186,20 @@ namespace upm {
}
/**
* Set the device temperature scale to Celcius of Fahrenheit. For
* Set the device temperature scale to Celsius of Fahrenheit. For
* devices with an LCD display, this will affect which scale is
* displayed. When changing the scale, it may take several
* seconds for the setting to take effect.
*
* @param fahrenheit true to set the scale to fahrenheit, false
* for celcius.
* for celsius.
*/
void setTemperatureScale(bool fahrenheit);
/**
* Get the device temperature scale.
*
* @return true if scale is fahrenheit, false for celcius.
* @return true if scale is fahrenheit, false for celsius.
*/
bool getTemperatureScale();
@ -213,7 +213,7 @@ namespace upm {
/**
* Set the device temperature offset. The offset is applied by
* the device internally to the temperature reading. The offset
* must always be specified in degrees Celcius. Valid values must
* must always be specified in degrees Celsius. Valid values must
* be between -50 and 50.
*
* @param value The temperature offset to configure.
@ -373,7 +373,7 @@ namespace upm {
// Have we checked the device's temperature unit setting yet
bool m_isTempInitialized;
// Is the device configured for Celcius?
bool m_isCelcius;
// Is the device configured for Celsius?
bool m_isCelsius;
};
}