Skip to content

Commit

Permalink
Restyled by clang-format
Browse files Browse the repository at this point in the history
  • Loading branch information
restyled-commits authored and jmeg-sfy committed Dec 17, 2021
1 parent ecedc67 commit 103383a
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
8 changes: 4 additions & 4 deletions examples/window-app/common/src/WindowApp.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -427,7 +427,7 @@ void WindowApp::Cover::LiftUp()
{
EmberAfStatus status;
chip::app::DataModel::Nullable<chip::Percent100ths> current;
chip::Percent100ths percent100ths = 5000; //set at middle
chip::Percent100ths percent100ths = 5000; // set at middle

status = Attributes::CurrentPositionLiftPercent100ths::Get(mEndpoint, current);

Expand All @@ -449,7 +449,7 @@ void WindowApp::Cover::LiftDown()
{
EmberAfStatus status;
chip::app::DataModel::Nullable<chip::Percent100ths> current;
chip::Percent100ths percent100ths = 5000; //set at middle
chip::Percent100ths percent100ths = 5000; // set at middle

status = Attributes::CurrentPositionLiftPercent100ths::Get(mEndpoint, current);

Expand Down Expand Up @@ -512,7 +512,7 @@ void WindowApp::Cover::TiltUp()
{
EmberAfStatus status;
chip::app::DataModel::Nullable<chip::Percent100ths> current;
chip::Percent100ths percent100ths = 5000; //set at middle
chip::Percent100ths percent100ths = 5000; // set at middle

status = Attributes::CurrentPositionTiltPercent100ths::Get(mEndpoint, current);

Expand All @@ -534,7 +534,7 @@ void WindowApp::Cover::TiltDown()
{
EmberAfStatus status;
chip::app::DataModel::Nullable<chip::Percent100ths> current;
chip::Percent100ths percent100ths = 5000; //set at middle
chip::Percent100ths percent100ths = 5000; // set at middle

status = Attributes::CurrentPositionTiltPercent100ths::Get(mEndpoint, current);

Expand Down
12 changes: 6 additions & 6 deletions src/app/util/ember-compatibility-functions.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -81,12 +81,12 @@ EmberAfAttributeType BaseType(EmberAfAttributeType type)
"chip::Percent is expected to be uint8_t, change this when necessary");
return ZCL_INT8U_ATTRIBUTE_TYPE;

case ZCL_ENDPOINT_NO_ATTRIBUTE_TYPE: // Endpoint Number
case ZCL_GROUP_ID_ATTRIBUTE_TYPE: // Group Id
case ZCL_VENDOR_ID_ATTRIBUTE_TYPE: // Vendor Id
case ZCL_ENUM16_ATTRIBUTE_TYPE: // 16-bit enumeration
case ZCL_BITMAP16_ATTRIBUTE_TYPE: // 16-bit bitmap
case ZCL_STATUS_ATTRIBUTE_TYPE: // Status Code
case ZCL_ENDPOINT_NO_ATTRIBUTE_TYPE: // Endpoint Number
case ZCL_GROUP_ID_ATTRIBUTE_TYPE: // Group Id
case ZCL_VENDOR_ID_ATTRIBUTE_TYPE: // Vendor Id
case ZCL_ENUM16_ATTRIBUTE_TYPE: // 16-bit enumeration
case ZCL_BITMAP16_ATTRIBUTE_TYPE: // 16-bit bitmap
case ZCL_STATUS_ATTRIBUTE_TYPE: // Status Code
case ZCL_PERCENT100THS_ATTRIBUTE_TYPE: // 100ths of a percent
static_assert(std::is_same<chip::EndpointId, uint16_t>::value,
"chip::EndpointId is expected to be uint16_t, change this when necessary");
Expand Down

0 comments on commit 103383a

Please sign in to comment.