Skip to content

Commit

Permalink
Restyled by clang-format
Browse files Browse the repository at this point in the history
  • Loading branch information
restyled-commits authored and arun-silabs committed Sep 24, 2024
1 parent b20f54d commit fab0545
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions examples/thermostat/silabs/src/SensorManager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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<AttributeUpdateInfo>();
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

Expand All @@ -128,7 +128,7 @@ void SensorManager::SensorTimerEventHandler(void * arg)

void SensorManager::UpdateClusterState(intptr_t context)
{
SensorManager::AttributeUpdateInfo * data = reinterpret_cast<SensorManager::AttributeUpdateInfo *> (context);
SensorManager::AttributeUpdateInfo * data = reinterpret_cast<SensorManager::AttributeUpdateInfo *>(context);
app::Clusters::Thermostat::Attributes::LocalTemperature::Set(data->endPoint, data->temperature);
chip::Platform::Delete(data);
}

0 comments on commit fab0545

Please sign in to comment.