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:
		
							parent
							
								
									b4948cf46f
								
							
						
					
					
						commit
						e45c4bf0ef
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		
							
								
								
									
										2
									
								
								AutomaticBrightness.sh
									
										
									
									
									
										
										
										Normal file → Executable file
									
								
							
							
						
						
									
										2
									
								
								AutomaticBrightness.sh
									
										
									
									
									
										
										
										Normal file → Executable file
									
								
							|  | @ -118,7 +118,7 @@ do | |||
| 		  CurrentBrightness=$(cat $BLightPath) | ||||
| 
 | ||||
|       # 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 | ||||
|       # Float math thanks Matthias_Wachter  | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue