Respect m_flags.skip in OpenTherm polling.

This commit is contained in:
Attila Balogh 2022-09-21 00:58:56 +02:00
parent e1f5390c32
commit d48283ca30

View File

@ -539,7 +539,7 @@ unsigned long sns_opentherm_get_next_request(struct OT_BOILER_STATUS_T *boilerSt
{ {
struct OpenThermCommandT *cmd = &sns_opentherm_commands[sns_opentherm_current_command]; struct OpenThermCommandT *cmd = &sns_opentherm_commands[sns_opentherm_current_command];
// Return error if command known as not supported // Return error if command known as not supported
if (!cmd->m_flags.notSupported) if (!cmd->m_flags.notSupported && !cmd->m_flags.skip)
{ {
// Retrurn OT compatible request // Retrurn OT compatible request
return cmd->m_ot_make_request(cmd, boilerStatus); return cmd->m_ot_make_request(cmd, boilerStatus);