Skip to content

Commit

Permalink
chip::to_underlying is missing [air-quality-sensor-manager] (project-…
Browse files Browse the repository at this point in the history
…chip#30057)

* chip::to_underlying is missing

* Apply suggested fix to remove unnecessary cast.

---------

Co-authored-by: Boris Zbarsky <bzbarsky@apple.com>
  • Loading branch information
2 people authored and shripad621git committed Oct 31, 2023
1 parent 6e3c57d commit 879e903
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -136,8 +136,8 @@ void AirQualitySensorManager::Init()

void AirQualitySensorManager::OnAirQualityChangeHandler(AirQualityEnum newValue)
{
mAirQualityInstance.UpdateAirQuality(static_cast<AirQualityEnum>(newValue));
ChipLogDetail(NotSpecified, "Updated AirQuality value: %huu", newValue);
mAirQualityInstance.UpdateAirQuality(newValue);
ChipLogDetail(NotSpecified, "Updated AirQuality value: %huu", chip::to_underlying(newValue));
}

void AirQualitySensorManager::OnCarbonDioxideMeasurementChangeHandler(float newValue)
Expand Down

0 comments on commit 879e903

Please sign in to comment.