Skip to content

Commit

Permalink
Fix Ifdefs and includes
Browse files Browse the repository at this point in the history
  • Loading branch information
sxb427 committed Jan 23, 2025
1 parent 1725fd3 commit 1809952
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,8 @@
#include "chef-valve-configuration-and-control-delegate-impl.h"
#include <app-common/zap-generated/attributes/Accessors.h>
#include <app/clusters/valve-configuration-and-control-server/valve-configuration-and-control-server.h>
#include <app/util/config.h>

// #ifdef MATTER_DM_PLUGIN_VALVE_CONFIGURATION_AND_CONTROL_SERVER
#ifdef MATTER_DM_PLUGIN_VALVE_CONFIGURATION_AND_CONTROL_SERVER

using namespace chip::app::Clusters::ValveConfigurationAndControl;
using namespace chip::app::Clusters;
Expand Down Expand Up @@ -162,5 +161,5 @@ void emberAfValveConfigurationAndControlClusterInitCallback(chip::EndpointId end
ValveConfigurationAndControl::SetDefaultDelegate(endpointId, gValveConfigurationAndControlDelegate);
}

// #endif // #ifdef MATTER_DM_PLUGIN_VALVE_CONFIGURATION_AND_CONTROL_SERVER
#endif // MATTER_DM_PLUGIN_VALVE_CONFIGURATION_AND_CONTROL_SERVER

Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,10 @@
#include <app/clusters/valve-configuration-and-control-server/valve-configuration-and-control-server.h>
#include <app/data-model/Nullable.h>
#include <app/util/basic-types.h>
#include <app/util/config.h>
#include <lib/core/CHIPError.h>

// #ifdef MATTER_DM_PLUGIN_VALVE_CONFIGURATION_AND_CONTROL_SERVER
#ifdef MATTER_DM_PLUGIN_VALVE_CONFIGURATION_AND_CONTROL_SERVER

namespace chip {
namespace app {
Expand Down Expand Up @@ -63,5 +64,5 @@ chefValveConfigurationAndControlReadCallback(chip::EndpointId endpointId, chip::
const EmberAfAttributeMetadata * attributeMetadata, uint8_t * buffer,
uint16_t maxReadLength);

// #endif // #ifdef MATTER_DM_PLUGIN_VALVE_CONFIGURATION_AND_CONTROL_SERVER
#endif // MATTER_DM_PLUGIN_VALVE_CONFIGURATION_AND_CONTROL_SERVER

0 comments on commit 1809952

Please sign in to comment.