Skip to content

Commit

Permalink
Replaced the SILABS_LOGS with CHIPLog
Browse files Browse the repository at this point in the history
  • Loading branch information
shgutte committed Sep 17, 2024
1 parent 2c517ba commit fdf9129
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
2 changes: 1 addition & 1 deletion examples/refrigerator-app/silabs/include/AppTask.h
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ class AppTask : public BaseApplication

/**
* @brief PB1 Button event processing function
* Function triggers a switch action sent to the CHIP task
* Function triggers a action sent to the CHIP task // TODO:: Action for refrigerator is not decided yet
*
* @param aEvent button event being processed
*/
Expand Down
9 changes: 5 additions & 4 deletions examples/refrigerator-app/silabs/src/AppTask.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@
#include <platform/silabs/platformAbstraction/SilabsPlatform.h>
#include <setup_payload/QRCodeSetupPayloadGenerator.h>
#include <setup_payload/SetupPayload.h>
#include <lib/support/logging/CHIPLogging.h>

/**********************************************************
* Defines and Constants
Expand Down Expand Up @@ -83,13 +84,13 @@ CHIP_ERROR AppTask::Init()
err = BaseApplication::Init();
if (err != CHIP_NO_ERROR)
{
SILABS_LOG("BaseApplication::Init() failed");
ChipLogProgress(Zcl, "BaseApplication::Init() failed");
appError(err);
}
err = RefrigeratorMgr().Init();
if (err != CHIP_NO_ERROR)
{
SILABS_LOG("RefrigeratorMgr::Init() failed");
ChipLogProgress(Zcl, "RefrigeratorMgr::Init() failed");
appError(err);
}

Expand All @@ -109,15 +110,15 @@ void AppTask::AppTaskMain(void * pvParameter)
CHIP_ERROR err = sAppTask.Init();
if (err != CHIP_NO_ERROR)
{
SILABS_LOG("AppTask.Init() failed");
ChipLogProgress(Zcl, "AppTask.Init() failed");
appError(err);
}

#if !(defined(CHIP_CONFIG_ENABLE_ICD_SERVER) && CHIP_CONFIG_ENABLE_ICD_SERVER)
sAppTask.StartStatusLEDTimer();
#endif

SILABS_LOG("App Task started");
ChipLogProgress(Zcl, "App Task started");
while (true)
{
osStatus_t eventReceived = osMessageQueueGet(sAppEventQueue, &event, NULL, osWaitForever);
Expand Down

0 comments on commit fdf9129

Please sign in to comment.