Skip to content

Commit

Permalink
Don't turn off display unless tip is colder than 60ºC
Browse files Browse the repository at this point in the history
  • Loading branch information
David authored and David committed Mar 5, 2024
1 parent f8be764 commit e87e23f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Drivers/graphics/gui/screens/screen_common.c
Original file line number Diff line number Diff line change
Expand Up @@ -165,8 +165,8 @@ void handleOledDim(void){
if((current_time-dim.timer)>getSystemSettings()->dim_Timeout){
dim.step=-5;
}
// If min. brightness reached and Oled power is disabled in sleep mode, turn off screen if temp<100ºC or error active
else if(dim.min_reached && (current_time - dim.timer > getSystemSettings()->dim_Timeout/2) && getCurrentMode()==mode_sleep && getSystemSettings()->dim_inSleep==disable && (last_TIP_C<100 || (getIronErrorFlags().active))){
// If min. brightness reached and Oled power is disabled in sleep mode, turn off screen if temp<60ºC or error active
else if(dim.min_reached && (current_time - dim.timer > getSystemSettings()->dim_Timeout/2) && getCurrentMode()==mode_sleep && getSystemSettings()->dim_inSleep==disable && (last_TIP_C<60 || (getIronErrorFlags().active))){
setDisplayPower(disable);
dim.min_reached=0;
}
Expand Down

0 comments on commit e87e23f

Please sign in to comment.