Skip to content

Commit

Permalink
https://github.com/project-chip/connectedhomeip/pull/26082#discussion…
Browse files Browse the repository at this point in the history
…_r1242668186
  • Loading branch information
fessehaeve committed Mar 28, 2024
1 parent 456e785 commit 284af37
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -1095,7 +1095,7 @@ bool emberAfTimeSynchronizationClusterSetUTCTimeCallback(
commandObj->AddStatus(commandPath, Status::InvalidCommand);
return true;
}
if (timeSource.HasValue() && (timeSource.Value() < TimeSourceEnum::kNone || timeSource.Value() > TimeSourceEnum::kGnss))
if (timeSource.HasValue() && timeSource.Value() == TimeSourceEnum::kUnknownEnumValue)
{
commandObj->AddStatus(commandPath, Status::InvalidCommand);
return true;
Expand Down

0 comments on commit 284af37

Please sign in to comment.