From 73aaa420c785731360c84a40d88b16c952348fc8 Mon Sep 17 00:00:00 2001 From: gekkekoe Date: Mon, 20 Jan 2025 12:40:05 +0100 Subject: [PATCH] moved polling of defrost and compressor freq to regular queue. regular queue will become twice as fast --- components/ecodan/commands.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/components/ecodan/commands.cpp b/components/ecodan/commands.cpp index e2ea6ed..d83f036 100644 --- a/components/ecodan/commands.cpp +++ b/components/ecodan/commands.cpp @@ -205,12 +205,12 @@ namespace ecodan return dispatch_next_cmd(); } - #define MAX_STATUS_CMD_SIZE 18 + #define MAX_STATUS_CMD_SIZE 20 Message statusCmdQueue[MAX_STATUS_CMD_SIZE] = { Message{MsgType::GET_CMD, GetType::DATETIME_FIRMWARE}, - //Message{MsgType::GET_CMD, GetType::DEFROST_STATE}, + Message{MsgType::GET_CMD, GetType::DEFROST_STATE}, Message{MsgType::GET_CMD, GetType::ERROR_STATE}, - //Message{MsgType::GET_CMD, GetType::COMPRESSOR_FREQUENCY}, + Message{MsgType::GET_CMD, GetType::COMPRESSOR_FREQUENCY}, Message{MsgType::GET_CMD, GetType::DHW_STATE}, Message{MsgType::GET_CMD, GetType::HEATING_POWER}, Message{MsgType::GET_CMD, GetType::TEMPERATURE_CONFIG}, @@ -232,12 +232,12 @@ namespace ecodan }; // core cmds needs to be requested more often than regular cmds - #define MAX_CORE_STATUS_CMD_SIZE 4 + #define MAX_CORE_STATUS_CMD_SIZE 2 Message coreStatusCmdQueue[MAX_CORE_STATUS_CMD_SIZE] = { Message{MsgType::GET_CMD, GetType::TEMPERATURE_STATE_A}, Message{MsgType::GET_CMD, GetType::FLOW_RATE}, - Message{MsgType::GET_CMD, GetType::DEFROST_STATE}, - Message{MsgType::GET_CMD, GetType::COMPRESSOR_FREQUENCY} + //Message{MsgType::GET_CMD, GetType::DEFROST_STATE}, + //Message{MsgType::GET_CMD, GetType::COMPRESSOR_FREQUENCY} }; bool EcodanHeatpump::dispatch_next_status_cmd()