Skip to content

Commit 041f396

Browse files
committed
Issue 633 - better error message.
1 parent 9aba4b3 commit 041f396

1 file changed

Lines changed: 8 additions & 3 deletions

File tree

src/config.c

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
//
22
// This file is part of Dire Wolf, an amateur radio packet TNC.
33
//
4-
// Copyright (C) 2011, 2012, 2013, 2014, 2015, 2016, 2017, 2018, 2021, 2023 John Langner, WB2OSZ
4+
// Copyright (C) 2011, 2012, 2013, 2014, 2015, 2016, 2017, 2018, 2021, 2023, 2025, 2026 John Langner, WB2OSZ
55
//
66
// This program is free software: you can redistribute it and/or modify
77
// it under the terms of the GNU General Public License as published by
@@ -2262,7 +2262,7 @@ void config_init (char *fname, struct audio_s *p_audio_config,
22622262
#else
22632263
text_color_set(DW_COLOR_ERROR);
22642264
dw_printf ("Config file line %d: %s with CM108 is only available when USB Audio GPIO support is enabled.\n", line, otname);
2265-
dw_printf ("You must rebuild direwolf with CM108 Audio Adapter GPIO PTT support.\n");
2265+
dw_printf ("You must install libudev-dev and rebuild direwolf to have CM108 Audio Adapter GPIO PTT support.\n");
22662266
dw_printf ("See Interface Guide for details.\n");
22672267
rtfm();
22682268
exit (EXIT_FAILURE);
@@ -5740,6 +5740,11 @@ void config_init (char *fname, struct audio_s *p_audio_config,
57405740
* Possible to have multiple and they are cumulative.
57415741
*/
57425742

5743+
#if 1 // release 1.9
5744+
// In hindsight, that was a bad idea. Was this ever used?
5745+
// We should not be enablers of bad behavior.
5746+
// Rip out all associated code in release 2.0 ???
5747+
57435748
else if (strcasecmp(t, "NOXID") == 0) {
57445749

57455750
t = split(NULL,0);
@@ -5767,7 +5772,7 @@ void config_init (char *fname, struct audio_s *p_audio_config,
57675772
t = split(NULL,0);
57685773
}
57695774
}
5770-
5775+
#endif
57715776

57725777
/*
57735778
* Invalid command.

0 commit comments

Comments
 (0)