Skip to content

Commit

Permalink
Looks like the changes to other clusters didn't make it to the (#8523)
Browse files Browse the repository at this point in the history
* Looks like the changes to other clusters didn't make it to the
thermostat cluster.  These changes allow it to compile again

* Restyled by clang-format

Co-authored-by: Restyled.io <[email protected]>
  • Loading branch information
2 people authored and pull[bot] committed Sep 1, 2021
1 parent 0359bf6 commit 1168584
Showing 1 changed file with 14 additions and 10 deletions.
24 changes: 14 additions & 10 deletions src/app/clusters/thermostat-server/thermostat.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,12 @@
#include <app/util/af-event.h>
#include <app/util/attribute-storage.h>

#include "gen/attribute-id.h"
#include "gen/attribute-type.h"
#include "gen/cluster-id.h"
#include "gen/enums.h"
#include <app/CommandHandler.h>
#include <app/common/gen/attribute-id.h>
#include <app/common/gen/attribute-type.h>
#include <app/common/gen/cluster-id.h>
#include <app/common/gen/command-id.h>
#include <app/common/gen/enums.h>

using namespace chip;

Expand All @@ -43,36 +45,38 @@ void emberAfThermostatClusterServerInitCallback(void)
// or should this just be the responsibility of the thermostat application?
}

bool emberAfThermostatClusterClearWeeklyScheduleCallback()
bool emberAfThermostatClusterClearWeeklyScheduleCallback(chip::app::CommandHandler * commandObj)
{
// TODO
return false;
}
bool emberAfThermostatClusterGetRelayStatusLogCallback()
bool emberAfThermostatClusterGetRelayStatusLogCallback(chip::app::CommandHandler * commandObj)
{
// TODO
return false;
}

bool emberAfThermostatClusterGetWeeklyScheduleCallback(uint8_t daysToReturn, uint8_t modeToReturn)
bool emberAfThermostatClusterGetWeeklyScheduleCallback(chip::app::CommandHandler * commandObj, uint8_t daysToReturn,
uint8_t modeToReturn)
{
// TODO
return false;
}

bool emberAfThermostatClusterSetWeeklyScheduleCallback(uint8_t numberOfTransitionsForSequence, uint8_t daysOfWeekForSequence,
bool emberAfThermostatClusterSetWeeklyScheduleCallback(chip::app::CommandHandler * commandObj,
uint8_t numberOfTransitionsForSequence, uint8_t daysOfWeekForSequence,
uint8_t modeForSequence, uint8_t * payload)
{
// TODO
return false;
}

bool emberAfThermostatClusterSetpointRaiseLowerCallback(uint8_t mode, int8_t amount)
bool emberAfThermostatClusterSetpointRaiseLowerCallback(chip::app::CommandHandler * commandObj, uint8_t mode, int8_t amount)
{
bool result = false;
EndpointId endpoint = 1; // Hard code to 1 for now/
int32_t HeatingSetpoint = 2000, CoolingSetpoint = 2600; // Set to defaults to be safe
EmberAfStatus status;
EmberAfStatus status = EMBER_ZCL_STATUS_FAILURE;
switch (mode)
{
case EMBER_ZCL_SETPOINT_ADJUST_MODE_HEAT_AND_COOL_SETPOINTS: {
Expand Down

0 comments on commit 1168584

Please sign in to comment.