reset current command pointer

This commit is contained in:
Yury Sannikov 2021-05-26 12:47:34 +03:00
parent 08cea20132
commit b06ca68526
1 changed files with 1 additions and 0 deletions

View File

@ -441,6 +441,7 @@ void sns_opentherm_dump_telemetry()
void sns_opentherm_protocol_reset()
{
sns_opentherm_current_command = SNS_OT_COMMANDS_COUNT;
for (int i = 0; i < SNS_OT_COMMANDS_COUNT; ++i)
{
struct OpenThermCommandT *cmd = &sns_opentherm_commands[i];