File tree 1 file changed +4
-4
lines changed
examples/thermostat/silabs/src
1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -115,10 +115,10 @@ void SensorManager::SensorTimerEventHandler(void * arg)
115
115
116
116
if ((temperature >= (lastTemperature + kMinTemperatureDelta )) || temperature <= (lastTemperature - kMinTemperatureDelta ))
117
117
{
118
- lastTemperature = temperature;
118
+ lastTemperature = temperature;
119
119
AttributeUpdateInfo * data = chip::Platform::New<AttributeUpdateInfo>();
120
- data->endPoint = kThermostatEndpoint ;
121
- data->temperature = temperature;
120
+ data->endPoint = kThermostatEndpoint ;
121
+ data->temperature = temperature;
122
122
// The SensorMagager shouldn't be aware of the Endpoint ID TODO Fix this.
123
123
// TODO Per Spec we should also apply the Offset stored in the same cluster before saving the temp
124
124
@@ -128,7 +128,7 @@ void SensorManager::SensorTimerEventHandler(void * arg)
128
128
129
129
void SensorManager::UpdateClusterState (intptr_t context)
130
130
{
131
- SensorManager::AttributeUpdateInfo * data = reinterpret_cast <SensorManager::AttributeUpdateInfo *> (context);
131
+ SensorManager::AttributeUpdateInfo * data = reinterpret_cast <SensorManager::AttributeUpdateInfo *>(context);
132
132
app::Clusters::Thermostat::Attributes::LocalTemperature::Set (data->endPoint , data->temperature );
133
133
chip::Platform::Delete (data);
134
134
}
You can’t perform that action at this time.
0 commit comments