Skip to content

Commit fab0545

Browse files
restyled-commitsarun-silabs
authored andcommitted
Restyled by clang-format
1 parent b20f54d commit fab0545

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

examples/thermostat/silabs/src/SensorManager.cpp

+4-4
Original file line numberDiff line numberDiff line change
@@ -115,10 +115,10 @@ void SensorManager::SensorTimerEventHandler(void * arg)
115115

116116
if ((temperature >= (lastTemperature + kMinTemperatureDelta)) || temperature <= (lastTemperature - kMinTemperatureDelta))
117117
{
118-
lastTemperature = temperature;
118+
lastTemperature = temperature;
119119
AttributeUpdateInfo * data = chip::Platform::New<AttributeUpdateInfo>();
120-
data->endPoint = kThermostatEndpoint;
121-
data->temperature = temperature;
120+
data->endPoint = kThermostatEndpoint;
121+
data->temperature = temperature;
122122
// The SensorMagager shouldn't be aware of the Endpoint ID TODO Fix this.
123123
// TODO Per Spec we should also apply the Offset stored in the same cluster before saving the temp
124124

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

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

0 commit comments

Comments
 (0)