Skip to content

Commit

Permalink
Fix commented code and comment syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
lpbeliveau-silabs committed Jul 24, 2023
1 parent 87329f3 commit 141aa07
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions src/app/reporting/SynchronizedReportSchedulerImpl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -183,8 +183,8 @@ void SynchronizedReportSchedulerImpl::TimerFired()
{
InteractionModelEngine::GetInstance()->GetReportingEngine().ScheduleRun();

// Timestamp now = mTimerDelegate->GetCurrentMonotonicTimestamp();
// ChipLogProgress(DataManagement, "Engine run at time: %" PRIu64 " for Handlers:", now.count());
Timestamp now = mTimerDelegate->GetCurrentMonotonicTimestamp();
ChipLogProgress(DataManagement, "Engine run at time: %" PRIu64 " for Handlers:", now.count());
mNodesPool.ForEachActiveObject([](ReadHandlerNode * node) {
if (node->IsReportableNow())
{
Expand Down
4 changes: 2 additions & 2 deletions src/app/tests/TestReadInteraction.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1836,8 +1836,8 @@ void TestReadInteraction::TestSubscribeUrgentWildcardEvent(nlTestSuite * apSuite
NL_TEST_ASSERT(apSuite, !delegate.mGotEventResponse);
NL_TEST_ASSERT(apSuite, !nonUrgentDelegate.mGotEventResponse);

// min-interval should have elapsed for urgen subscription, and our handler should still
// not be dirty or even reportable.
// The min-interval should have elapsed for urgen subscription, and our handler should still
// not be dirty or reportable.
NL_TEST_ASSERT(apSuite,
reportScheduler->GetMinTimestampForHandler(delegate.mpReadHandler) <
System::SystemClock().GetMonotonicTimestamp());
Expand Down
4 changes: 2 additions & 2 deletions src/app/tests/TestReportScheduler.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -555,7 +555,7 @@ class TestReportScheduler

// Confirm behavior when a read handler becomes dirty
readHandler2->ForceDirtyState();
// OnBecome Reportable should have been called on ForceDirtyState because readHandler callbacks are now integrated
// OnBecomeReportable should have been called on ForceDirtyState because readHandler callbacks are now integrated
NL_TEST_ASSERT(aSuite, !syncScheduler.IsReportableNow(readHandler2));
NL_TEST_ASSERT(aSuite, !syncScheduler.IsReportableNow(readHandler1));
// Simulate wait enough for min timestamp of readHandler2 to be reached (1s)
Expand Down Expand Up @@ -763,7 +763,7 @@ class TestReportScheduler
NL_TEST_ASSERT(aSuite, CHIP_NO_ERROR == readHandler1->SetMinReportingIntervalForTests(0));
readHandler1->MoveToState(ReadHandler::HandlerState::GeneratingReports);
syncScheduler.OnReadHandlerCreated(readHandler1);
// Forcing the dirty flag to will make the scheduler call Engine::ScheduleRun() immediately
// Forcing the dirty flag to make the scheduler call Engine::ScheduleRun() immediately
readHandler1->ForceDirtyState();
NL_TEST_ASSERT(aSuite, syncScheduler.IsReportableNow(readHandler1));

Expand Down

0 comments on commit 141aa07

Please sign in to comment.