Skip to content

Commit

Permalink
Moved the ICD_REPORT_ON_ENTER_ACTIVE_MODE in the report scheduler imp…
Browse files Browse the repository at this point in the history
…lementation
  • Loading branch information
lpbeliveau-silabs committed Sep 14, 2023
1 parent 0690f55 commit 4d02496
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
6 changes: 0 additions & 6 deletions src/app/icd/ICDManager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -33,12 +33,6 @@
#define ICD_ENFORCE_SIT_SLOW_POLL_LIMIT 0
#endif

// This can be enable by adding report_on_active to your build arguments
#ifndef ICD_REPORT_ON_ENTER_ACTIVE_MODE
// Enabling this makes the device emit subscription reports when transitioning from idle to active mode.
#define ICD_REPORT_ON_ENTER_ACTIVE_MODE 0
#endif

namespace chip {
namespace app {

Expand Down
5 changes: 5 additions & 0 deletions src/app/reporting/ReportScheduler.h
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,11 @@ class TimerContext
virtual void TimerFired() = 0;
};

#ifndef ICD_REPORT_ON_ENTER_ACTIVE_MODE
// Enabling this makes the device emit subscription reports when transitioning from idle to active mode.
#define ICD_REPORT_ON_ENTER_ACTIVE_MODE 0
#endif

class ReportScheduler : public ReadHandler::Observer, public ICDStateObserver
{
public:
Expand Down

0 comments on commit 4d02496

Please sign in to comment.