From 3f82228905ac9b1e54ea8eb8c4770d530de7455a Mon Sep 17 00:00:00 2001 From: Theo Arends <11044339+arendst@users.noreply.github.com> Date: Thu, 10 Apr 2025 11:32:43 +0200 Subject: [PATCH] Fix MIEL_HVAC temperature saving 9k code size in addition (#23271) --- tasmota/tasmota_xdrv_driver/xdrv_44_miel_hvac.ino | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/tasmota/tasmota_xdrv_driver/xdrv_44_miel_hvac.ino b/tasmota/tasmota_xdrv_driver/xdrv_44_miel_hvac.ino index 17de2e460..c79fcf091 100644 --- a/tasmota/tasmota_xdrv_driver/xdrv_44_miel_hvac.ino +++ b/tasmota/tasmota_xdrv_driver/xdrv_44_miel_hvac.ino @@ -875,12 +875,11 @@ miel_hvac_cmnd_settemp(void) { struct miel_hvac_softc *sc = miel_hvac_sc; struct miel_hvac_msg_update_settings *update = &sc->sc_settings_update; - float degc; if (XdrvMailbox.data_len == 0) return; - degc = strtof(XdrvMailbox.data, nullptr); + float degc = CharToFloat(XdrvMailbox.data); if (degc < MIEL_HVAC_SETTINGS_TEMP_MIN || degc > MIEL_HVAC_SETTINGS_TEMP_MAX) { miel_hvac_respond_unsupported(); @@ -899,7 +898,7 @@ miel_hvac_cmnd_settemp(void) update->temp05 = miel_hvac_deg2temp(degc); } - ResponseCmndNumber(degc); + ResponseCmndFloat(degc, Settings->flag2.temperature_resolution); } static void