diff options
author | Michael J. Chudobiak <mjc@avtechpulse.com> | 2012-08-30 12:01:27 -0400 |
---|---|---|
committer | Michael J. Chudobiak <mjc@avtechpulse.com> | 2012-08-30 12:01:27 -0400 |
commit | 08a7ae9ef2b3943e5b3bba5aca1d3bcfbbec9535 (patch) | |
tree | 42c94fc4ebc02af03607244ec60ba689db197551 | |
parent | 745bb897095935b1c776f99d6e48d110e9c46621 (diff) |
remove unused parameter
-rw-r--r-- | menus.c | 10 | ||||
-rw-r--r-- | string_utils.c | 2 | ||||
-rw-r--r-- | string_utils.h | 2 |
3 files changed, 7 insertions, 7 deletions
@@ -1235,7 +1235,7 @@ static void Display_Number_on_LCD(int Is_Item_Visible,int LCD_row,int LCD_col,ch break; } - String_Parameter_To_Text(Submenu_Value,(int) Submenu_Value,significant_digits,start_string,units,LCD_string,show_plus_sign); + String_Parameter_To_Text(Submenu_Value,significant_digits,start_string,units,LCD_string,show_plus_sign); } else { strcpy(LCD_string,start_string); } @@ -1944,9 +1944,9 @@ static void Submenu_Display(int redraw) break; case mode_amp_min: if (globals.Flash.voltage_enabled[channel]) { - String_Parameter_To_Text(globals.Flash.min_ampl[channel],0,2,"","V",mode_name[i],YES); + String_Parameter_To_Text(globals.Flash.min_ampl[channel],2,"","V",mode_name[i],YES); } else { - String_Parameter_To_Text(globals.Flash.min_ampl[channel],0,2,"","A",mode_name[i],YES); + String_Parameter_To_Text(globals.Flash.min_ampl[channel],2,"","A",mode_name[i],YES); } if (fabs(globals.ChannelState[channel].amplitude-globals.Flash.min_ampl[channel])<globals.Flash.ampl_zero_equiv[channel]) { @@ -1955,9 +1955,9 @@ static void Submenu_Display(int redraw) break; case mode_amp_max: if (globals.Flash.voltage_enabled[channel]) { - String_Parameter_To_Text(globals.Flash.max_ampl[channel],0,2,"","V",mode_name[i],YES); + String_Parameter_To_Text(globals.Flash.max_ampl[channel],2,"","V",mode_name[i],YES); } else { - String_Parameter_To_Text(globals.Flash.max_ampl[channel],0,2,"","A",mode_name[i],YES); + String_Parameter_To_Text(globals.Flash.max_ampl[channel],2,"","A",mode_name[i],YES); } if (fabs(globals.ChannelState[channel].amplitude-globals.Flash.max_ampl[channel])<globals.Flash.ampl_zero_equiv[channel]) { diff --git a/string_utils.c b/string_utils.c index c0e34ef..382cf30 100644 --- a/string_utils.c +++ b/string_utils.c @@ -39,7 +39,7 @@ gboolean String_is_it_numeric(char *parameter) } -void String_Parameter_To_Text(float Float_To_Convert,int Int_To_Convert, int significant_digits, +void String_Parameter_To_Text(float Float_To_Convert, int significant_digits, char *start_string,char *units,char *LCD_string,int show_plus_sign) { // FIXME - crappy string func diff --git a/string_utils.h b/string_utils.h index 03c774a..6aaa8a1 100644 --- a/string_utils.h +++ b/string_utils.h @@ -5,7 +5,7 @@ void Float_To_Text(int decimal_digits,float number_in, gchar** text_out); gboolean String_is_it_numeric(char *parameter); -void String_Parameter_To_Text(float Float_To_Convert,int Int_To_Convert, int significant_digits, +void String_Parameter_To_Text(float Float_To_Convert, int significant_digits, char *start_string,char *units,char *LCD_string,int show_plus_sign); #endif |