summaryrefslogtreecommitdiff
path: root/monitor.c
diff options
context:
space:
mode:
Diffstat (limited to 'monitor.c')
-rw-r--r--monitor.c20
1 files changed, 10 insertions, 10 deletions
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<max_channels; ++i) {
TestState[i]=globals.ChannelState[i];
}
@@ -223,11 +223,11 @@ int I2C_Check_Monitors(void)
}
if (globals.Flash.soft_current_limit_enabled[channel] &&
- (globals.Flash.fully_programmed != Being_Programmed) &&
- (globals.ChannelState[channel].Curr_Mon_value > 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