From 2bf345824b942f510d114bb0905f0b1abd9182e9 Mon Sep 17 00:00:00 2001 From: PtilopsisLeucotis Date: Sun, 7 Nov 2021 00:51:32 +0300 Subject: [PATCH] Fix `IRHaierAC176::getTemp()` return value description In fact, `IRHaierAC176::getTemp()` return temperature in unit, dependent on `UseFahrenheit` value. --- src/ir_Haier.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/ir_Haier.cpp b/src/ir_Haier.cpp index cb5c2f88a..1ba09cfb5 100644 --- a/src/ir_Haier.cpp +++ b/src/ir_Haier.cpp @@ -702,7 +702,8 @@ void IRHaierAC176::setTemp(const uint8_t degree, const bool fahrenheit) { } /// Get the current temperature setting. -/// @return The current setting for temp. in degrees celsius. +/// The unit of temperature is specified by UseFahrenheit value. +/// @return The current setting for temperature. uint8_t IRHaierAC176::getTemp(void) const { if (!_.UseFahrenheit) { return _.Temp + kHaierAcYrw02MinTempC; } uint8_t degree = _.Temp*2 + kHaierAcYrw02MinTempF + _.ExtraDegreeF;