Skip to content

Commit 507d424

Browse files
committed
Added chip logs
1 parent c415c55 commit 507d424

File tree

4 files changed

+4
-9
lines changed

4 files changed

+4
-9
lines changed

examples/refrigerator-app/silabs/build_for_wifi_gnfile.gn

+1
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ check_system_includes = true
2323
default_args = {
2424
target_cpu = "arm"
2525
target_os = "freertos"
26+
chip_device_platform = "SiWx917"
2627
chip_enable_wifi = true
2728
import("//build_for_wifi_args.gni")
2829
}

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

-7
Original file line numberDiff line numberDiff line change
@@ -26,13 +26,6 @@ class RefrigeratorUI
2626
{
2727

2828
public:
29-
enum SUPPORTED_MODES
30-
{
31-
NORMAL = 0x0000,
32-
ENERGY_SAVE = 0x0004,
33-
RAPID_COOL = 0x4000,
34-
RAPID_FREEZE = 0x4001,
35-
};
3629

3730
static void DrawUI(GLIB_Context_t * glibContext);
3831
static void SetCurrentTemp(int8_t temp);

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ void AppTask::AppTaskMain(void * pvParameter)
118118
sAppTask.StartStatusLEDTimer();
119119
#endif
120120

121-
ChipLogError(AppServer, "App Task started");
121+
ChipLogDetail(AppServer, "App Task started");
122122
while (true)
123123
{
124124
osStatus_t eventReceived = osMessageQueueGet(sAppEventQueue, &event, NULL, osWaitForever);

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

+2-1
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@
2424
#include "dmd.h"
2525
#include "glib.h"
2626
#include "lcd.h"
27+
#include <lib/support/logging/CHIPLogging.h>
2728

2829
#if SL_WIFI && !defined(SLI_SI91X_MCU_INTERFACE)
2930
// Only needed for wifi NCP devices
@@ -63,7 +64,7 @@ void RefrigeratorUI::DrawUI(GLIB_Context_t * glibContext)
6364
{
6465
if (glibContext == nullptr)
6566
{
66-
SILABS_LOG("Context is null");
67+
ChipLogDetail(AppServer, "App Task started");
6768
return;
6869
}
6970

0 commit comments

Comments
 (0)