Skip to content

Commit 546f3a0

Browse files
committed
Modified the API name as suggested.
1 parent fab0545 commit 546f3a0

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

examples/thermostat/silabs/include/SensorManager.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ class SensorManager
3838
};
3939

4040
private:
41-
static void UpdateClusterState(intptr_t context);
41+
static void UpdateTemperatureAttribute(intptr_t context);
4242
friend SensorManager & SensorMgr();
4343

4444
osTimerId_t mSensorTimer;

examples/thermostat/silabs/src/SensorManager.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -122,11 +122,11 @@ void SensorManager::SensorTimerEventHandler(void * arg)
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

125-
chip::DeviceLayer::PlatformMgr().ScheduleWork(UpdateClusterState, reinterpret_cast<intptr_t>(data));
125+
chip::DeviceLayer::PlatformMgr().ScheduleWork(UpdateTemperatureAttribute, reinterpret_cast<intptr_t>(data));
126126
}
127127
}
128128

129-
void SensorManager::UpdateClusterState(intptr_t context)
129+
void SensorManager::UpdateTemperatureAttribute(intptr_t context)
130130
{
131131
SensorManager::AttributeUpdateInfo * data = reinterpret_cast<SensorManager::AttributeUpdateInfo *>(context);
132132
app::Clusters::Thermostat::Attributes::LocalTemperature::Set(data->endPoint, data->temperature);

0 commit comments

Comments
 (0)