Skip to content

Commit fdf9129

Browse files
committed
Replaced the SILABS_LOGS with CHIPLog
1 parent 2c517ba commit fdf9129

File tree

2 files changed

+6
-5
lines changed

2 files changed

+6
-5
lines changed

examples/refrigerator-app/silabs/include/AppTask.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ class AppTask : public BaseApplication
101101

102102
/**
103103
* @brief PB1 Button event processing function
104-
* Function triggers a switch action sent to the CHIP task
104+
* Function triggers a action sent to the CHIP task // TODO:: Action for refrigerator is not decided yet
105105
*
106106
* @param aEvent button event being processed
107107
*/

examples/refrigerator-app/silabs/src/AppTask.cpp

+5-4
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@
4848
#include <platform/silabs/platformAbstraction/SilabsPlatform.h>
4949
#include <setup_payload/QRCodeSetupPayloadGenerator.h>
5050
#include <setup_payload/SetupPayload.h>
51+
#include <lib/support/logging/CHIPLogging.h>
5152

5253
/**********************************************************
5354
* Defines and Constants
@@ -83,13 +84,13 @@ CHIP_ERROR AppTask::Init()
8384
err = BaseApplication::Init();
8485
if (err != CHIP_NO_ERROR)
8586
{
86-
SILABS_LOG("BaseApplication::Init() failed");
87+
ChipLogProgress(Zcl, "BaseApplication::Init() failed");
8788
appError(err);
8889
}
8990
err = RefrigeratorMgr().Init();
9091
if (err != CHIP_NO_ERROR)
9192
{
92-
SILABS_LOG("RefrigeratorMgr::Init() failed");
93+
ChipLogProgress(Zcl, "RefrigeratorMgr::Init() failed");
9394
appError(err);
9495
}
9596

@@ -109,15 +110,15 @@ void AppTask::AppTaskMain(void * pvParameter)
109110
CHIP_ERROR err = sAppTask.Init();
110111
if (err != CHIP_NO_ERROR)
111112
{
112-
SILABS_LOG("AppTask.Init() failed");
113+
ChipLogProgress(Zcl, "AppTask.Init() failed");
113114
appError(err);
114115
}
115116

116117
#if !(defined(CHIP_CONFIG_ENABLE_ICD_SERVER) && CHIP_CONFIG_ENABLE_ICD_SERVER)
117118
sAppTask.StartStatusLEDTimer();
118119
#endif
119120

120-
SILABS_LOG("App Task started");
121+
ChipLogProgress(Zcl, "App Task started");
121122
while (true)
122123
{
123124
osStatus_t eventReceived = osMessageQueueGet(sAppEventQueue, &event, NULL, osWaitForever);

0 commit comments

Comments
 (0)