Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 72cd5db

Browse files
committedJan 11, 2017
start changes
1 parent 085051c commit 72cd5db

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed
 

‎audio.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,8 @@ enum ptt_method_e {
3030
PTT_METHOD_SERIAL, /* Serial port RTS or DTR. */
3131
PTT_METHOD_GPIO, /* General purpose I/O, Linux only. */
3232
PTT_METHOD_LPT, /* Parallel printer port, Linux only. */
33-
PTT_METHOD_HAMLIB }; /* HAMLib, Linux only. */
33+
PTT_METHOD_HAMLIB, /* HAMLib, Linux only. */
34+
PTT_METHOD_AUDIO }; /* Audio channel. */
3435

3536
typedef enum ptt_method_e ptt_method_t;
3637

‎config.c

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1582,7 +1582,10 @@ void config_init (char *fname, struct audio_s *p_audio_config,
15821582
dw_printf ("Config file line %d: %s with RIG is only available when hamlib support is enabled.\n", line, otname);
15831583
#endif
15841584
}
1585-
else {
1585+
else if (strcasecmp( t, "CHN") == 0) {
1586+
p_audio_config->achan[channel].octrl[ot].ptt_method = PTT_METHOD_AUDIO;
1587+
}
1588+
else {
15861589

15871590
/* serial port case. */
15881591

0 commit comments

Comments
 (0)
Please sign in to comment.