From 2313616e72663c5dbe3cff66bae1e9dfc2a1c754 Mon Sep 17 00:00:00 2001 From: shgutte <102281713+shgutte@users.noreply.github.com> Date: Wed, 18 Sep 2024 15:48:41 +0530 Subject: [PATCH] Added chip logs --- examples/refrigerator-app/silabs/build_for_wifi_gnfile.gn | 1 + examples/refrigerator-app/silabs/include/RefrigeratorUI.h | 7 ------- examples/refrigerator-app/silabs/src/AppTask.cpp | 2 +- examples/refrigerator-app/silabs/src/RefrigeratorUI.cpp | 3 ++- 4 files changed, 4 insertions(+), 9 deletions(-) diff --git a/examples/refrigerator-app/silabs/build_for_wifi_gnfile.gn b/examples/refrigerator-app/silabs/build_for_wifi_gnfile.gn index cd49e2ce59b961..c3b7b1f03675ef 100644 --- a/examples/refrigerator-app/silabs/build_for_wifi_gnfile.gn +++ b/examples/refrigerator-app/silabs/build_for_wifi_gnfile.gn @@ -23,6 +23,7 @@ check_system_includes = true default_args = { target_cpu = "arm" target_os = "freertos" + chip_device_platform = "SiWx917" chip_enable_wifi = true import("//build_for_wifi_args.gni") } diff --git a/examples/refrigerator-app/silabs/include/RefrigeratorUI.h b/examples/refrigerator-app/silabs/include/RefrigeratorUI.h index dba64c9ddab712..b3529d83db0c51 100644 --- a/examples/refrigerator-app/silabs/include/RefrigeratorUI.h +++ b/examples/refrigerator-app/silabs/include/RefrigeratorUI.h @@ -26,13 +26,6 @@ class RefrigeratorUI { public: - enum SUPPORTED_MODES - { - NORMAL = 0x0000, - ENERGY_SAVE = 0x0004, - RAPID_COOL = 0x4000, - RAPID_FREEZE = 0x4001, - }; static void DrawUI(GLIB_Context_t * glibContext); static void SetCurrentTemp(int8_t temp); diff --git a/examples/refrigerator-app/silabs/src/AppTask.cpp b/examples/refrigerator-app/silabs/src/AppTask.cpp index 41aebf51cc31e3..dbc2e724670a9f 100644 --- a/examples/refrigerator-app/silabs/src/AppTask.cpp +++ b/examples/refrigerator-app/silabs/src/AppTask.cpp @@ -118,7 +118,7 @@ void AppTask::AppTaskMain(void * pvParameter) sAppTask.StartStatusLEDTimer(); #endif - ChipLogError(AppServer, "App Task started"); + ChipLogDetail(AppServer, "App Task started"); while (true) { osStatus_t eventReceived = osMessageQueueGet(sAppEventQueue, &event, NULL, osWaitForever); diff --git a/examples/refrigerator-app/silabs/src/RefrigeratorUI.cpp b/examples/refrigerator-app/silabs/src/RefrigeratorUI.cpp index 3a3f0dba99e190..f62e633af986b9 100644 --- a/examples/refrigerator-app/silabs/src/RefrigeratorUI.cpp +++ b/examples/refrigerator-app/silabs/src/RefrigeratorUI.cpp @@ -24,6 +24,7 @@ #include "dmd.h" #include "glib.h" #include "lcd.h" +#include #if SL_WIFI && !defined(SLI_SI91X_MCU_INTERFACE) // Only needed for wifi NCP devices @@ -63,7 +64,7 @@ void RefrigeratorUI::DrawUI(GLIB_Context_t * glibContext) { if (glibContext == nullptr) { - SILABS_LOG("Context is null"); + ChipLogDetail(AppServer, "App Task started"); return; }