Skip to content

Commit

Permalink
moved polling of defrost and compressor freq to regular queue. regula…
Browse files Browse the repository at this point in the history
…r queue will become twice as fast
  • Loading branch information
gekkekoe committed Jan 20, 2025
1 parent 3048204 commit 73aaa42
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions components/ecodan/commands.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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},
Expand All @@ -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()
Expand Down

0 comments on commit 73aaa42

Please sign in to comment.