From 469c04dc229a054758c7cf5ebbc8cd145a72191d Mon Sep 17 00:00:00 2001 From: thirupathi Date: Thu, 7 Sep 2023 10:40:16 +0530 Subject: [PATCH] addressed review comments --- examples/window-app/silabs/src/WindowManager.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/examples/window-app/silabs/src/WindowManager.cpp b/examples/window-app/silabs/src/WindowManager.cpp index d8e010d5307418..80d641e76834dc 100644 --- a/examples/window-app/silabs/src/WindowManager.cpp +++ b/examples/window-app/silabs/src/WindowManager.cpp @@ -58,7 +58,7 @@ using namespace ::chip::DeviceLayer::Silabs; #ifdef DIC_ENABLE #define DECIMAL 10 -#define BYTE 5 +#define MSG_SIZE 5 #include "dic.h" #endif // DIC_ENABLE @@ -512,7 +512,7 @@ void WindowManager::Cover::CallbackPositionSet(intptr_t arg) TiltPositionSet(data->mEndpointId, position); #ifdef DIC_ENABLE uint16_t value = data->percent100ths; - char buffer[BYTE]; + char buffer[MSG_SIZE]; itoa(value, buffer, DECIMAL); dic_sendmsg("tilt/position set", (const char *) (buffer)); #endif // DIC_ENABLE @@ -522,7 +522,7 @@ void WindowManager::Cover::CallbackPositionSet(intptr_t arg) LiftPositionSet(data->mEndpointId, position); #ifdef DIC_ENABLE uint16_t value = data->percent100ths; - char buffer[BYTE]; + char buffer[MSG_SIZE]; itoa(value, buffer, DECIMAL); dic_sendmsg("lift/position set", (const char *) (buffer)); #endif // DIC_ENABLE