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 Sarthak-Shaha committed Sep 25, 2024
1 parent 97ed46b commit 3dde81d
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions examples/air-quality-sensor-app/silabs/src/SensorManager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -136,9 +136,10 @@ CHIP_ERROR SensorManager::Init()

void writeAirQualityToAttribute(intptr_t context)
{
int32_t *air_quality_ptr = reinterpret_cast<int32_t*>(context);
int32_t * air_quality_ptr = reinterpret_cast<int32_t *>(context);
AirQualitySensorManager::GetInstance()->OnAirQualityChangeHandler(classifyAirQuality(*air_quality_ptr));
ChipLogDetail(AppServer, "RAW AirQuality value: %ld and corresponding Enum value : %d", *air_quality_ptr,chip::to_underlying(AirQualitySensorManager::GetInstance()->GetAirQuality()));
ChipLogDetail(AppServer, "RAW AirQuality value: %ld and corresponding Enum value : %d", *air_quality_ptr,
chip::to_underlying(AirQualitySensorManager::GetInstance()->GetAirQuality()));
AppTask::GetAppTask().UpdateAirQualitySensorUI();
}

Expand Down Expand Up @@ -172,8 +173,8 @@ void SensorManager::SensorTimerEventHandler(void * arg)
nbOfRepetition = 0;
}
#endif // USE_AIR_QUALITY_SENSOR
//create pointer for the int32_t air_quality
int32_t* air_quality_ptr = new int32_t(air_quality);
// create pointer for the int32_t air_quality
int32_t * air_quality_ptr = new int32_t(air_quality);
DeviceLayer::PlatformMgr().ScheduleWork(writeAirQualityToAttribute, reinterpret_cast<intptr_t>(air_quality_ptr));
ChipLogDetail(AppServer, "writeAirQualityToAttribute success");
}

0 comments on commit 3dde81d

Please sign in to comment.