Skip to content

Commit f1eca7d

Browse files
committed
fix(matter): not used variable from log_e() message
1 parent bcf884b commit f1eca7d

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Diff for: libraries/Matter/src/MatterEndpoints/MatterThermostat.h

+2
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,9 @@ class MatterThermostat : public MatterEndPoint {
115115

116116
// AUTO mode requires both setpoints to be valid to each other and respect the deadband
117117
if (currentMode == THERMOSTAT_MODE_AUTO) {
118+
#if ARDUHAL_LOG_LEVEL >= ARDUHAL_LOG_LEVEL_ERROR
118119
float deadband = getDeadBand();
120+
#endif
119121
// only setting Cooling Setpoint
120122
if (settingCooling && !settingHeating && _rawCoolValue < (heatingSetpointTemperature + (kDefaultDeadBand * 10))) {
121123
log_e("AutoMode :: Invalid Cooling Setpoint value: %.01fC - must be higher or equal than %.01fC", _setpointCollingTemperature, getHeatingSetpoint() + deadband);

0 commit comments

Comments
 (0)