File tree 2 files changed +9
-3
lines changed
examples/lighting-app/telink
2 files changed +9
-3
lines changed Original file line number Diff line number Diff line change @@ -48,6 +48,7 @@ class AppTask : public AppTaskCommon
48
48
friend class AppTaskCommon ;
49
49
50
50
CHIP_ERROR Init (void );
51
+ void LinkLeds (LedManager & ledManager);
51
52
52
53
static void LightingActionEventHandler (AppEvent * aEvent);
53
54
#ifdef CONFIG_CHIP_ENABLE_POWER_ON_FACTORY_RESET
Original file line number Diff line number Diff line change @@ -59,9 +59,7 @@ CHIP_ERROR AppTask::Init(void)
59
59
{
60
60
SetExampleButtonCallbacks (LightingActionEventHandler);
61
61
InitCommonParts ();
62
- #if (!CONFIG_PWM)
63
- LedManager::getInstance ().linkLed (LedManager::EAppLed_App0, 1 );
64
- #endif
62
+
65
63
Protocols::InteractionModel::Status status;
66
64
67
65
app::DataModel::Nullable<uint8_t > brightness;
@@ -251,3 +249,10 @@ void AppTask::PowerOnFactoryResetTimerEvent(struct k_timer * timer)
251
249
}
252
250
}
253
251
#endif /* CONFIG_CHIP_ENABLE_POWER_ON_FACTORY_RESET */
252
+
253
+ void AppTask::LinkLeds (LedManager & ledManager)
254
+ {
255
+ #if (!CONFIG_PWM)
256
+ ledManager.linkLed (LedManager::EAppLed_App0, 0 );
257
+ #endif // !CONFIG_PWM
258
+ }
You can’t perform that action at this time.
0 commit comments