Skip to content

Commit c01aa52

Browse files
committed
Use std::numeric_limits<uint32_t>::max() as endTime default
1 parent f88e961 commit c01aa52

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

examples/chef/common/clusters/channel/ChannelManager.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -251,7 +251,7 @@ void ChannelManager::HandleGetProgramGuide(
251251
{
252252
continue;
253253
}
254-
if (endTime.ValueOr(0) < program.endTime)
254+
if (endTime.ValueOr(std::numeric_limits<uint32_t>::max()) < program.endTime)
255255
{
256256
continue;
257257
}
@@ -315,7 +315,7 @@ bool ChannelManager::HandleCancelRecordProgram(const chip::CharSpan & programIde
315315
std::string nextIdString(program.identifier.data(), program.identifier.size());
316316
if (nextIdString == idString)
317317
{
318-
program.recordingFlag = MakeOptional<uint32_t>(0);
318+
program.recordingFlag = MakeOptional<chip::BitMask<RecordingFlagBitmap>>(0);
319319
}
320320
}
321321
return true;

0 commit comments

Comments
 (0)