diff options
Diffstat (limited to 'monitor.c')
-rw-r--r-- | monitor.c | 11 |
1 files changed, 5 insertions, 6 deletions
@@ -230,12 +230,11 @@ int I2C_Check_Monitors(void) (globals.ChannelState[channel].Curr_Mon_value > globals.ChannelState[channel].soft_current_limit)) { Set_Output_State(channel,output_off); queue_and_broadcast_sensor_alarm(Soft_Limit_Exceeded); - } - else if (globals.MenuStatus.Type_Of_Menu==Main_Menu_On && - !globals.MenuStatus.Error_Screen && - !globals.MenuStatus.Nonstd_Display && - globals.ChannelState[channel].Curr_Mon_value!=globals.ChannelState[channel].displayed_mon_val && - (seconds_since_last > 0)) + } else if (globals.MenuStatus.Type_Of_Menu==Main_Menu_On && + !globals.MenuStatus.Error_Screen && + !globals.MenuStatus.Nonstd_Display && + globals.ChannelState[channel].Curr_Mon_value!=globals.ChannelState[channel].displayed_mon_val && + (seconds_since_last > 0)) /* only update display once a second */ { ++update_display; |