Skip to content

Commit

Permalink
Fixed floating point suffix.
Browse files Browse the repository at this point in the history
  • Loading branch information
BlueAndi committed Aug 21, 2024
1 parent 1903f53 commit 2dd3a38
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Gfx/BrightnessCtrl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -308,7 +308,7 @@ void BrightnessCtrl::applyLightSensorMeasurement(uint32_t dTime, float light)

void BrightnessCtrl::updateBrightnessGoal()
{
float fCorrectedBrightness = powf(m_ambientLight, 1.0f / GAMMA);
float fCorrectedBrightness = powf(m_ambientLight, 1.0F / GAMMA);
float fBrightnessDynamicRange = static_cast<float>(m_maxBrightness - m_minBrightness);
float fMinBrightness = static_cast<float>(m_minBrightness);
float fBrightness = fMinBrightness + (fBrightnessDynamicRange * fCorrectedBrightness);
Expand Down

0 comments on commit 2dd3a38

Please sign in to comment.