mirror of
				https://github.com/eclipse/upm.git
				synced 2025-10-31 07:04:14 +03:00 
			
		
		
		
	spelling: correct many misspellings of celsius
Signed-off-by: Jon Trulson <jtrulson@ics.com>
This commit is contained in:
		| @@ -33,7 +33,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) | ||||
| { | ||||
| @@ -55,7 +55,7 @@ TB7300::TB7300(uint32_t targetDeviceObjectID) : | ||||
|   checkReliability(false); | ||||
|  | ||||
|   m_isTempInitialized = false; | ||||
|   m_isCelcius = false; | ||||
|   m_isCelsius = false; | ||||
|  | ||||
|   // room temperature only | ||||
|   m_temperature = 0.0; | ||||
| @@ -75,7 +75,7 @@ void TB7300::update() | ||||
|  | ||||
|   float tmpF = getAnalogValue(AV_Room_Temperature); | ||||
|  | ||||
|   if (m_isCelcius) | ||||
|   if (m_isCelsius) | ||||
|     m_temperature = tmpF; | ||||
|   else | ||||
|     m_temperature = f2c(tmpF); | ||||
| @@ -94,7 +94,7 @@ void TB7300::setTemperatureScale(bool fahrenheit) | ||||
|   setBinaryValue(BV_Temperature_Scale, fahrenheit); | ||||
|  | ||||
|   m_isTempInitialized = true; | ||||
|   m_isCelcius = (fahrenheit) ? false : true; | ||||
|   m_isCelsius = (fahrenheit) ? false : true; | ||||
| } | ||||
|  | ||||
| bool TB7300::getTemperatureScale() | ||||
| @@ -102,7 +102,7 @@ bool TB7300::getTemperatureScale() | ||||
|   bool scale = getBinaryValue(BV_Temperature_Scale); | ||||
|  | ||||
|   m_isTempInitialized = true; | ||||
|   m_isCelcius = !scale; | ||||
|   m_isCelsius = !scale; | ||||
|  | ||||
|   return scale; | ||||
| } | ||||
|   | ||||
| @@ -222,27 +222,27 @@ 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); | ||||
|  | ||||
|     /** | ||||
|      * 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(); | ||||
|  | ||||
| @@ -251,7 +251,7 @@ namespace upm { | ||||
|     float m_temperature; | ||||
|  | ||||
|     bool m_isTempInitialized; | ||||
|     bool m_isCelcius; | ||||
|     bool m_isCelsius; | ||||
|  | ||||
|   private: | ||||
|   }; | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Jon Trulson
					Jon Trulson