diff options
Diffstat (limited to 'menus.c')
-rw-r--r-- | menus.c | 22 |
1 files changed, 17 insertions, 5 deletions
@@ -2056,12 +2056,14 @@ static int Submenu_Mult_Value(float mult_by) new_value=zero_equiv_timing; } } - if (fabs(new_value) < zero_equiv_timing) + + if (fabs(new_value) < zero_equiv_timing) { if (new_value<0.0) { new_value=-smallest_allowed_number; } else { new_value=smallest_allowed_number; } + } if (error_num=Set_Delay(0,0,0,channel,new_value)) { Submenu_Value=new_value; @@ -2077,12 +2079,14 @@ static int Submenu_Mult_Value(float mult_by) new_value=zero_equiv_timing; } } - if (fabs(new_value) < zero_equiv_timing) + + if (fabs(new_value) < zero_equiv_timing) { if (new_value<0.0) { new_value=-smallest_allowed_number; } else { new_value=smallest_allowed_number; } + } if (error_num=Set_Pw(0,0,0,channel,new_value,0)) { Submenu_Value=new_value; @@ -2097,12 +2101,15 @@ static int Submenu_Mult_Value(float mult_by) new_value=globals.Flash.ampl_zero_equiv[channel]; } } - if (fabs(new_value) < globals.Flash.ampl_zero_equiv[channel]) + + if (fabs(new_value) < globals.Flash.ampl_zero_equiv[channel]) { if (new_value<0.0) { new_value=-smallest_allowed_number; } else { new_value=smallest_allowed_number; } + } + if (error_num=Set_Amplitude(0,0,0,0,0,0,channel,new_value,0)) { Submenu_Value=new_value; } @@ -2165,12 +2172,15 @@ static int Submenu_Mult_Value(float mult_by) new_value=globals.Flash.ampl_zero_equiv[channel]; } } - if (fabs(new_value) < globals.Flash.ampl_zero_equiv[channel]) + + if (fabs(new_value) < globals.Flash.ampl_zero_equiv[channel]) { if (new_value<0.0) { new_value=-smallest_allowed_number; } else { new_value=smallest_allowed_number; } + } + if (error_num=Set_Offset(0,0,0,0,channel,new_value)) { Submenu_Value=new_value; } @@ -2574,12 +2584,14 @@ static void Submenu_Service_Encoder(int encoder_change) if (globals.Flash.min_ampl[channel]==globals.Flash.max_ampl[channel]) { return; } - if (fabs(new_value) < globals.Flash.ampl_zero_equiv[channel]) + + if (fabs(new_value) < globals.Flash.ampl_zero_equiv[channel]) { if (Submenu_Value<0.0) { new_value=-smallest_allowed_number; } else { new_value=smallest_allowed_number; } + } if (globals.Flash.ampl_min_max_only[channel]) { /* not used for two-state amplitudes */ return; |