Skip to content

Commit

Permalink
Added chip logs
Browse files Browse the repository at this point in the history
  • Loading branch information
shgutte committed Sep 26, 2024
1 parent fe93f33 commit 2248975
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 9 deletions.
1 change: 1 addition & 0 deletions examples/refrigerator-app/silabs/build_for_wifi_gnfile.gn
Original file line number Diff line number Diff line change
Expand Up @@ -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")
}
7 changes: 0 additions & 7 deletions examples/refrigerator-app/silabs/include/RefrigeratorUI.h
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
2 changes: 1 addition & 1 deletion examples/refrigerator-app/silabs/src/AppTask.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
3 changes: 2 additions & 1 deletion examples/refrigerator-app/silabs/src/RefrigeratorUI.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
#include "dmd.h"
#include "glib.h"
#include "lcd.h"
#include <lib/support/logging/CHIPLogging.h>

#if SL_WIFI && !defined(SLI_SI91X_MCU_INTERFACE)
// Only needed for wifi NCP devices
Expand Down Expand Up @@ -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;
}

Expand Down

0 comments on commit 2248975

Please sign in to comment.