From 288a506c0579ce69147ebbc7b84d513c63dce783 Mon Sep 17 00:00:00 2001 From: "Michael J. Chudobiak" Date: Tue, 28 Aug 2012 13:29:42 -0400 Subject: astyle fixes --- monitor.c | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) (limited to 'monitor.c') diff --git a/monitor.c b/monitor.c index 0fc319a..28d25e3 100644 --- a/monitor.c +++ b/monitor.c @@ -177,7 +177,7 @@ int I2C_Check_Monitors(void) if (seconds_since_last > 0) { if ( (globals.ChannelState[channel].func_mode==dc_mode_on) - || (globals.ChannelState[channel].output_state==output_off)) { + || (globals.ChannelState[channel].output_state==output_off)) { /* force monitor measurement every second in DC mode (because no TTL trigger is present) and output-off mode */ force_monitor_cal(channel,NO); @@ -199,19 +199,19 @@ int I2C_Check_Monitors(void) /* 5.0V is the full-scale voltage of the 12bit ADC */ globals.ChannelState[channel].Curr_Mon_value=((((float) monitor_word)/4095.0) * 5.0) - / globals.Flash.mon_vi_ratio[channel][ampl_range][use_neg_data]; + / globals.Flash.mon_vi_ratio[channel][ampl_range][use_neg_data]; /* convert to even step size */ step_size=globals.Flash.monitor_step[channel]; globals.ChannelState[channel].Curr_Mon_value= - ((float) - ((long) (globals.ChannelState[channel].Curr_Mon_value/step_size)) - ) - * step_size; + ((float) + ((long) (globals.ChannelState[channel].Curr_Mon_value/step_size)) + ) + * step_size; /* AVO-8D2: check for duty cycle problems, as a function of measured amplitude */ if ( globals.Flash.hard_current_limit_enabled[channel] && - (globals.ChannelState[channel].output_state == output_on)) { + (globals.ChannelState[channel].output_state == output_on)) { for (i=0; i globals.ChannelState[channel].soft_current_limit)) { + (globals.Flash.fully_programmed != Being_Programmed) && + (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); - } + } // FIXME - menus // else if (Type_Of_Menu==Main_Menu_On && Error_Screen==NO && Nonstd_Display==NO // && globals.ChannelState[channel].Curr_Mon_value!=globals.ChannelState[channel].displayed_mon_val -- cgit