From 300095079c000ff7dfd169e90c3d8c8521f9551e Mon Sep 17 00:00:00 2001 From: Mathieu Kardous Date: Fri, 24 Nov 2023 11:08:40 -0500 Subject: [PATCH] all fixes --- src/app/reporting/ReportScheduler.h | 1 + src/app/reporting/SynchronizedReportSchedulerImpl.cpp | 2 +- third_party/openthread/platforms/efr32/BUILD.gn | 1 + 3 files changed, 3 insertions(+), 1 deletion(-) diff --git a/src/app/reporting/ReportScheduler.h b/src/app/reporting/ReportScheduler.h index 43441be73bddf5..382c547a1cee4b 100644 --- a/src/app/reporting/ReportScheduler.h +++ b/src/app/reporting/ReportScheduler.h @@ -96,6 +96,7 @@ class ReportScheduler : public ReadHandler::Observer, public ICDStateObserver IsEngineRunScheduled())); } + bool IsChunkedReport() const { return mReadHandler->CanStartReporting(); } bool IsEngineRunScheduled() const { return mFlags.Has(ReadHandlerNodeFlags::EngineRunScheduled); } void SetEngineRunScheduled(bool aEngineRunScheduled) { diff --git a/src/app/reporting/SynchronizedReportSchedulerImpl.cpp b/src/app/reporting/SynchronizedReportSchedulerImpl.cpp index 55992e35febd24..7b924506fcd96f 100644 --- a/src/app/reporting/SynchronizedReportSchedulerImpl.cpp +++ b/src/app/reporting/SynchronizedReportSchedulerImpl.cpp @@ -140,7 +140,7 @@ CHIP_ERROR SynchronizedReportSchedulerImpl::CalculateNextReportTimeout(Timeout & bool reportableAtMin = false; mNodesPool.ForEachActiveObject([&reportableNow, &reportableAtMin, this, now](ReadHandlerNode * node) { - if (!node->IsEngineRunScheduled()) + if (!node->IsEngineRunScheduled() || node->IsChunkedReport()) { if (node->IsReportableNow(now)) { diff --git a/third_party/openthread/platforms/efr32/BUILD.gn b/third_party/openthread/platforms/efr32/BUILD.gn index e3862a465670c3..3f4047dd83f3e0 100644 --- a/third_party/openthread/platforms/efr32/BUILD.gn +++ b/third_party/openthread/platforms/efr32/BUILD.gn @@ -63,6 +63,7 @@ source_set("libopenthread-efr32") { "${sl_ot_efr32_root}/radio.c", "${sl_ot_efr32_root}/sleep.c", "${sl_ot_efr32_root}/system.c", + "${sl_ot_efr32_root}/soft_source_match_table.c", ] public_deps = [