Skip to content

Commit

Permalink
WC: Move HasFeature from Static
Browse files Browse the repository at this point in the history
  • Loading branch information
jmeg-sfy committed Oct 14, 2021
1 parent 61b172d commit 5383068
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -62,10 +62,7 @@ using namespace chip::app::Clusters::WindowCovering;
#define CHECK_BOUNDS_INVALID(MIN, VAL, MAX) ((VAL < MIN) || (VAL > MAX))
#define CHECK_BOUNDS_VALID(MIN, VAL, MAX) (!CHECK_BOUNDS_INVALID(MIN, VAL, MAX))

static bool HasFeature(chip::EndpointId endpoint, Features feature)
{
return true;
}


static uint16_t ConvertValue(uint16_t inputLowValue, uint16_t inputHighValue, uint16_t outputLowValue, uint16_t outputHighValue, uint16_t value)
{
Expand Down Expand Up @@ -160,6 +157,10 @@ namespace app {
namespace Clusters {
namespace WindowCovering {

bool HasFeature(chip::EndpointId endpoint, Features feature)
{
return true;
}

void PrintPercent100ths(const char * pMessage, uint16_t percent100ths)
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
#include <app-common/zap-generated/attribute-id.h>
#include <app-common/zap-generated/enums.h>
#include <app/util/af-types.h>
#include <app/util/basic-types.h>

namespace chip {
namespace app {
Expand Down Expand Up @@ -99,6 +100,8 @@ enum class LimitStatus : uint8_t
};
static_assert(sizeof(LimitStatus) == sizeof(uint8_t), "LimitStatus Size is not correct");

bool HasFeature(chip::EndpointId endpoint, Features feature);

void TypeSet(chip::EndpointId endpoint, EmberAfWcType type);
EmberAfWcType TypeGet(chip::EndpointId endpoint);

Expand Down

0 comments on commit 5383068

Please sign in to comment.