From 4c1a595430414ad1e198f11487df1c69930e7f8d Mon Sep 17 00:00:00 2001 From: steel99xl Date: Tue, 6 Aug 2024 15:58:00 -0400 Subject: [PATCH] Fixed Error --- AutomaticBrightness.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/AutomaticBrightness.sh b/AutomaticBrightness.sh index 2f27e80..ee728e3 100755 --- a/AutomaticBrightness.sh +++ b/AutomaticBrightness.sh @@ -118,7 +118,7 @@ do CurrentBrightness=$(cat $BLightPath) # Add MinimumBrighness here to not effect comparison but the outcome - Light=$(LANG=C printf "%.0f" $(echo "scale=2; $Light + ( $MinimumBrightness * $SensorToDisplayScale ) " | bc )) + Light=$(LANG=C printf "%.0f" $(echo "scale=2; $Light + ( ($MaxScreenBrightness * ( $MinimumBrightness / 100 )) / $SensorToDisplayScale ) " | bc )) # Gernate a TempLight value for the screen to be set to # Float math thanks Matthias_Wachter