From 4fce7ee1d96afc6c6bc4d773f2302b0c42ddd9a0 Mon Sep 17 00:00:00 2001 From: crankyoldgit Date: Wed, 7 Apr 2021 14:54:58 +1000 Subject: [PATCH] Fujitsu: Fix `toString()`s display of half degrees. For #1455 --- src/ir_Fujitsu.cpp | 4 ++-- src/ir_Fujitsu.h | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/ir_Fujitsu.cpp b/src/ir_Fujitsu.cpp index 73bcc963e..b2f6b3a74 100644 --- a/src/ir_Fujitsu.cpp +++ b/src/ir_Fujitsu.cpp @@ -36,7 +36,7 @@ using irutils::addLabeledString; using irutils::addModeToString; using irutils::addModelToString; using irutils::addFanToString; -using irutils::addTempToString; +using irutils::addTempFloatToString; using irutils::minsToString; #if SEND_FUJITSU_AC @@ -779,7 +779,7 @@ String IRFujitsuAC::toString(void) const { result += addModeToString(_.Mode, kFujitsuAcModeAuto, kFujitsuAcModeCool, kFujitsuAcModeHeat, kFujitsuAcModeDry, kFujitsuAcModeFan); - result += addTempToString(getTemp(), getCelsius()); + result += addTempFloatToString(getTemp(), getCelsius()); result += addFanToString(_.Fan, kFujitsuAcFanHigh, kFujitsuAcFanLow, kFujitsuAcFanAuto, kFujitsuAcFanQuiet, kFujitsuAcFanMed); diff --git a/src/ir_Fujitsu.h b/src/ir_Fujitsu.h index f8fc2fbed..f9b2d7380 100644 --- a/src/ir_Fujitsu.h +++ b/src/ir_Fujitsu.h @@ -95,7 +95,7 @@ union FujitsuProtocol { uint64_t :1; uint64_t OutsideQuiet :1; // Byte 15 - uint64_t :0; + uint64_t :0; // Checksum }; };