Skip to content

Commit

Permalink
Fix_temperature_colour_part3
Browse files Browse the repository at this point in the history
The temperature as displayed in the GUI is red on blue
(which means the drive temperature is higher than max
limit but less than the critical limit.

This bug appeared when critical limit = NO_TEMPERATURE_DATA
so that in such a situation the text would be red on black
despite the drive temperature being within normal operating
range.
  • Loading branch information
PartialVolume committed Oct 19, 2023
1 parent 193cc8f commit 902ba87
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/gui.c
Original file line number Diff line number Diff line change
Expand Up @@ -7028,7 +7028,7 @@ void wprintw_temperature( nwipe_context_t* c )
{
/* if drive temperature has exceeded the max temperature if available
*/
if( ( local_temp1_input >= temp_high_limit ) && ( local_temp1_input <= temp_highest_limit )
if( ( local_temp1_input >= temp_high_limit ) && ( local_temp1_input < temp_highest_limit )
&& ( local_temp1_input != NO_TEMPERATURE_DATA ) && ( temp_high_limit != NO_TEMPERATURE_DATA ) )
{
/* red on blue */
Expand Down

0 comments on commit 902ba87

Please sign in to comment.