mirror of https://github.com/wb2osz/direwolf.git
Missing else resulted in incorrect and confusing error message.
This commit is contained in:
parent
26599ec771
commit
fa7d3bce47
4
config.c
4
config.c
|
@ -1651,7 +1651,7 @@ void config_init (char *fname, struct audio_s *p_audio_config,
|
||||||
t = split(NULL,0);
|
t = split(NULL,0);
|
||||||
if (t == NULL) {
|
if (t == NULL) {
|
||||||
text_color_set(DW_COLOR_ERROR);
|
text_color_set(DW_COLOR_ERROR);
|
||||||
dw_printf ("Config file line %d: Missing serial port name for %s command.\n",
|
dw_printf ("Config file line %d: Missing output control device for %s command.\n",
|
||||||
line, otname);
|
line, otname);
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
@ -1761,7 +1761,7 @@ void config_init (char *fname, struct audio_s *p_audio_config,
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
if (strcasecmp(t, "CM108") == 0) {
|
else if (strcasecmp(t, "CM108") == 0) {
|
||||||
|
|
||||||
/* CM108 - GPIO of USB sound card. case, Linux only. */
|
/* CM108 - GPIO of USB sound card. case, Linux only. */
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue