From f1f41b7ed1dbb3caee9e4e17a7315365e52bd967 Mon Sep 17 00:00:00 2001 From: WB2OSZ Date: Sun, 31 Jan 2016 17:47:41 -0500 Subject: [PATCH] Configuration for hamlib RIG was not being parsed correctly. modified: config.c --- config.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/config.c b/config.c index 5115a97..c2646fe 100644 --- a/config.c +++ b/config.c @@ -1546,7 +1546,7 @@ void config_init (char *fname, struct audio_s *p_audio_config, #ifdef USE_HAMLIB p_audio_config->achan[channel].octrl[ot].ptt_method = PTT_METHOD_HAMLIB; - t = strtok (NULL, " ,\t\n\r"); + t = split(NULL,0); if (t == NULL) { text_color_set(DW_COLOR_ERROR); dw_printf ("Config file line %d: Missing RIG number.\n", line); @@ -1715,7 +1715,7 @@ void config_init (char *fname, struct audio_s *p_audio_config, continue; } - t = strtok (NULL, " ,\t\n\r"); + t = split(NULL,0); if (t == NULL) { text_color_set(DW_COLOR_ERROR); dw_printf ("Config file line %d: Missing port, model[, key=value].\n", @@ -1725,7 +1725,7 @@ void config_init (char *fname, struct audio_s *p_audio_config, strncpy (port.pathname, t, FILPATHLEN - 1); - t = strtok (NULL, " ,\t\n\r"); + t = split(NULL,0); if (t == NULL) { text_color_set(DW_COLOR_ERROR); dw_printf ("Config file line %d: Missing model[, key=value]\n", line);