Skip to content

Commit 3525ebf

Browse files
authored
fix(matter): Fix typo in parameter name for setCoolingHeatingSetpoints
1 parent ad1dc0b commit 3525ebf

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

libraries/Matter/src/MatterEndpoints/MatterThermostat.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ class MatterThermostat : public MatterEndPoint {
101101
// Heating Setpoint must be lower than Cooling Setpoint
102102
// When using AUTO mode the Cooling Setpoint must be higher than Heating Setpoint by at least the 2.5C (deadband)
103103
// Thermostat Matter Server will enforce those rules and the Max/Min setpoints limits as in the Matter Specification
104-
bool setCoolingHeatingSetpoints(double _setpointHeatingTemperature, double _setpointCollingTemperature);
104+
bool setCoolingHeatingSetpoints(double _setpointHeatingTemperature, double _setpointCoolingTemperature);
105105

106106
// set the heating setpoint in 1/100th of a Celsio degree
107107
bool setHeatingSetpoint(double _setpointHeatingTemperature) {
@@ -112,8 +112,8 @@ class MatterThermostat : public MatterEndPoint {
112112
return heatingSetpointTemperature / 100.0;
113113
}
114114
// set the cooling setpoint in 1/100th of a Celsio degree
115-
bool setCoolingSetpoint(double _setpointCollingTemperature) {
116-
return setCoolingHeatingSetpoints(_setpointCollingTemperature, (double)0xffff);
115+
bool setCoolingSetpoint(double _setpointCoolingTemperature) {
116+
return setCoolingHeatingSetpoints(_setpointCoolingTemperature, (double)0xffff);
117117
}
118118
// get the cooling setpoint in 1/100th of a Celsio degree
119119
double getCoolingSetpoint() {

0 commit comments

Comments
 (0)