Skip to content

Commit 1168584

Browse files
drempelgrestyled-commits
authored andcommitted
Looks like the changes to other clusters didn't make it to the (#8523)
* 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 <commits@restyled.io>
1 parent 0359bf6 commit 1168584

File tree

1 file changed

+14
-10
lines changed

1 file changed

+14
-10
lines changed

src/app/clusters/thermostat-server/thermostat.cpp

+14-10
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,12 @@
2020
#include <app/util/af-event.h>
2121
#include <app/util/attribute-storage.h>
2222

23-
#include "gen/attribute-id.h"
24-
#include "gen/attribute-type.h"
25-
#include "gen/cluster-id.h"
26-
#include "gen/enums.h"
23+
#include <app/CommandHandler.h>
24+
#include <app/common/gen/attribute-id.h>
25+
#include <app/common/gen/attribute-type.h>
26+
#include <app/common/gen/cluster-id.h>
27+
#include <app/common/gen/command-id.h>
28+
#include <app/common/gen/enums.h>
2729

2830
using namespace chip;
2931

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

46-
bool emberAfThermostatClusterClearWeeklyScheduleCallback()
48+
bool emberAfThermostatClusterClearWeeklyScheduleCallback(chip::app::CommandHandler * commandObj)
4749
{
4850
// TODO
4951
return false;
5052
}
51-
bool emberAfThermostatClusterGetRelayStatusLogCallback()
53+
bool emberAfThermostatClusterGetRelayStatusLogCallback(chip::app::CommandHandler * commandObj)
5254
{
5355
// TODO
5456
return false;
5557
}
5658

57-
bool emberAfThermostatClusterGetWeeklyScheduleCallback(uint8_t daysToReturn, uint8_t modeToReturn)
59+
bool emberAfThermostatClusterGetWeeklyScheduleCallback(chip::app::CommandHandler * commandObj, uint8_t daysToReturn,
60+
uint8_t modeToReturn)
5861
{
5962
// TODO
6063
return false;
6164
}
6265

63-
bool emberAfThermostatClusterSetWeeklyScheduleCallback(uint8_t numberOfTransitionsForSequence, uint8_t daysOfWeekForSequence,
66+
bool emberAfThermostatClusterSetWeeklyScheduleCallback(chip::app::CommandHandler * commandObj,
67+
uint8_t numberOfTransitionsForSequence, uint8_t daysOfWeekForSequence,
6468
uint8_t modeForSequence, uint8_t * payload)
6569
{
6670
// TODO
6771
return false;
6872
}
6973

70-
bool emberAfThermostatClusterSetpointRaiseLowerCallback(uint8_t mode, int8_t amount)
74+
bool emberAfThermostatClusterSetpointRaiseLowerCallback(chip::app::CommandHandler * commandObj, uint8_t mode, int8_t amount)
7175
{
7276
bool result = false;
7377
EndpointId endpoint = 1; // Hard code to 1 for now/
7478
int32_t HeatingSetpoint = 2000, CoolingSetpoint = 2600; // Set to defaults to be safe
75-
EmberAfStatus status;
79+
EmberAfStatus status = EMBER_ZCL_STATUS_FAILURE;
7680
switch (mode)
7781
{
7882
case EMBER_ZCL_SETPOINT_ADJUST_MODE_HEAT_AND_COOL_SETPOINTS: {

0 commit comments

Comments
 (0)