diff options
author | Michael J. Chudobiak <mjc@avtechpulse.com> | 2012-10-19 14:41:01 -0400 |
---|---|---|
committer | Michael J. Chudobiak <mjc@avtechpulse.com> | 2012-10-19 14:41:01 -0400 |
commit | 5f9bb3b7146d9453c56de73652ab213ca885c6e0 (patch) | |
tree | 6d62ddbad0c1d0e885134810f73aaf96320ef80a /menus.c | |
parent | 3ebde173c2976a6d83f94bd4a1b5738fa52dd685 (diff) |
extra braces to suppress compiler warnings
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; |