Skip to content

Commit

Permalink
addressed review comments
Browse files Browse the repository at this point in the history
  • Loading branch information
Thirsrin committed Sep 7, 2023
1 parent 604f0af commit f44d99d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions examples/window-app/silabs/src/WindowManager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down Expand Up @@ -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
Expand All @@ -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
Expand Down

0 comments on commit f44d99d

Please sign in to comment.