From de16f9a58542c180ef3d8d192aaeffa3dd832d3f Mon Sep 17 00:00:00 2001 From: MichaelDvP Date: Mon, 6 May 2024 21:55:36 +0200 Subject: [PATCH] fix crash on shutdown command register --- src/devices/boiler.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/devices/boiler.cpp b/src/devices/boiler.cpp index 7066c2bd7..85c1de9e1 100644 --- a/src/devices/boiler.cpp +++ b/src/devices/boiler.cpp @@ -803,7 +803,7 @@ Boiler::Boiler(uint8_t device_type, int8_t device_id, uint8_t product_id, const DeviceValueUOM::NONE, MAKE_CF_CB(set_hpPumpMode)); register_device_value(DeviceValueTAG::TAG_DEVICE_DATA, &fan_, DeviceValueType::UINT8, FL_(hpFan), DeviceValueUOM::PERCENT, MAKE_CF_CB(set_fan), 20, 100); - register_device_value(DeviceValueTAG::TAG_DEVICE_DATA, &hpshutdown_, DeviceValueType::CMD, FL_(hpShutdown), DeviceValueUOM::NONE, MAKE_CF_CB(set_shutdown)); + register_device_value(DeviceValueTAG::TAG_DEVICE_DATA, &hpshutdown_, DeviceValueType::CMD, FL_(enum_modetype5), FL_(hpShutdown), DeviceValueUOM::NONE, MAKE_CF_CB(set_shutdown)); // heatpump DHW settings register_device_value(DeviceValueTAG::TAG_DHW1, &wwAlternatingOper_,