From fa7d3bce47efe612c0cff9a897589e3bc7779bc1 Mon Sep 17 00:00:00 2001 From: wb2osz Date: Wed, 3 Jan 2018 22:43:38 -0500 Subject: [PATCH] Missing else resulted in incorrect and confusing error message. --- config.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/config.c b/config.c index fb15ddd..86a3655 100644 --- a/config.c +++ b/config.c @@ -1651,7 +1651,7 @@ void config_init (char *fname, struct audio_s *p_audio_config, t = split(NULL,0); if (t == NULL) { 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); continue; } @@ -1761,7 +1761,7 @@ void config_init (char *fname, struct audio_s *p_audio_config, #endif } - if (strcasecmp(t, "CM108") == 0) { + else if (strcasecmp(t, "CM108") == 0) { /* CM108 - GPIO of USB sound card. case, Linux only. */