MinimumBrightness is now closer to representing the % of brightness

still to be improved, but currently no good way to get the max sensor brightness wightout saving it during the calibration
This commit is contained in:
steel99xl 2024-08-06 15:22:59 -04:00
parent b4948cf46f
commit e45c4bf0ef

2
AutomaticBrightness.sh Normal file → Executable file
View file

@ -118,7 +118,7 @@ do
CurrentBrightness=$(cat $BLightPath) CurrentBrightness=$(cat $BLightPath)
# Add MinimumBrighness here to not effect comparison but the outcome # Add MinimumBrighness here to not effect comparison but the outcome
Light=$(( $Light + $MinimumBrightness )) Light=$(LANG=C printf "%.0f" $(echo "scale=2; $Light + ( $MinimumBrightness * $SensorToDisplayScale ) " | bc ))
# Gernate a TempLight value for the screen to be set to # Gernate a TempLight value for the screen to be set to
# Float math thanks Matthias_Wachter # Float math thanks Matthias_Wachter