Skip to content

Commit

Permalink
Modified the API name as suggested.
Browse files Browse the repository at this point in the history
  • Loading branch information
arun-silabs committed Sep 24, 2024
1 parent fab0545 commit 546f3a0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion examples/thermostat/silabs/include/SensorManager.h
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ class SensorManager
};

private:
static void UpdateClusterState(intptr_t context);
static void UpdateTemperatureAttribute(intptr_t context);
friend SensorManager & SensorMgr();

osTimerId_t mSensorTimer;
Expand Down
4 changes: 2 additions & 2 deletions examples/thermostat/silabs/src/SensorManager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -122,11 +122,11 @@ void SensorManager::SensorTimerEventHandler(void * arg)
// 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

chip::DeviceLayer::PlatformMgr().ScheduleWork(UpdateClusterState, reinterpret_cast<intptr_t>(data));
chip::DeviceLayer::PlatformMgr().ScheduleWork(UpdateTemperatureAttribute, reinterpret_cast<intptr_t>(data));
}
}

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

0 comments on commit 546f3a0

Please sign in to comment.