diff --git a/examples/thermostat/silabs/src/SensorManager.cpp b/examples/thermostat/silabs/src/SensorManager.cpp index f667fbcdd95b8c..e812d265120381 100644 --- a/examples/thermostat/silabs/src/SensorManager.cpp +++ b/examples/thermostat/silabs/src/SensorManager.cpp @@ -115,10 +115,10 @@ void SensorManager::SensorTimerEventHandler(void * arg) if ((temperature >= (lastTemperature + kMinTemperatureDelta)) || temperature <= (lastTemperature - kMinTemperatureDelta)) { - lastTemperature = temperature; + lastTemperature = temperature; AttributeUpdateInfo * data = chip::Platform::New(); - data->endPoint = kThermostatEndpoint; - data->temperature = temperature; + data->endPoint = kThermostatEndpoint; + data->temperature = temperature; // The SensorMagager shouldn't be aware of the Endpoint ID TODO Fix this. // TODO Per Spec we should also apply the Offset stored in the same cluster before saving the temp @@ -128,7 +128,7 @@ void SensorManager::SensorTimerEventHandler(void * arg) void SensorManager::UpdateClusterState(intptr_t context) { - SensorManager::AttributeUpdateInfo * data = reinterpret_cast (context); + SensorManager::AttributeUpdateInfo * data = reinterpret_cast(context); app::Clusters::Thermostat::Attributes::LocalTemperature::Set(data->endPoint, data->temperature); chip::Platform::Delete(data); }