Skip to content

Commit

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

* Apply suggested fix to remove unnecessary cast.

---------

Co-authored-by: Boris Zbarsky <[email protected]>
  • Loading branch information
2 people authored and pull[bot] committed Nov 6, 2023
1 parent 46abc05 commit 2752905
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 2752905

Please sign in to comment.