Merge pull request #16610 from balogh-attila/development

Respect m_flags.skip in OpenTherm polling.
This commit is contained in:
Theo Arends 2022-09-24 15:23:48 +02:00 committed by GitHub
commit 478aac4c8a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

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);