Skip to content

Commit

Permalink
set onTime to 0 on off with LVL cluster
Browse files Browse the repository at this point in the history
  • Loading branch information
lecndav committed Jun 10, 2024
1 parent c158260 commit 33a25d6
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/app/clusters/on-off-server/on-off-server.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -452,12 +452,12 @@ Status OnOffServer::setOnOffValue(chip::EndpointId endpoint, chip::CommandId com
ChipLogProgress(Zcl, "ERR: writing on/off %x", to_underlying(status));
return status;
}
}

if (SupportsLightingApplications(endpoint))
{
ChipLogProgress(Zcl, "Off completed. reset OnTime to 0");
Attributes::OnTime::Set(endpoint, 0); // Reset onTime
}
if (SupportsLightingApplications(endpoint))
{
ChipLogProgress(Zcl, "Off completed. reset OnTime to 0");
Attributes::OnTime::Set(endpoint, 0); // Reset onTime
}
}

Expand Down

0 comments on commit 33a25d6

Please sign in to comment.