start changes

This commit is contained in:
Andrew 2017-01-11 11:33:37 -08:00
parent 085051cd40
commit 72cd5dbc26
2 changed files with 6 additions and 2 deletions

View File

@ -30,7 +30,8 @@ enum ptt_method_e {
PTT_METHOD_SERIAL, /* Serial port RTS or DTR. */
PTT_METHOD_GPIO, /* General purpose I/O, Linux only. */
PTT_METHOD_LPT, /* Parallel printer port, Linux only. */
PTT_METHOD_HAMLIB }; /* HAMLib, Linux only. */
PTT_METHOD_HAMLIB, /* HAMLib, Linux only. */
PTT_METHOD_AUDIO }; /* Audio channel. */
typedef enum ptt_method_e ptt_method_t;

View File

@ -1582,6 +1582,9 @@ void config_init (char *fname, struct audio_s *p_audio_config,
dw_printf ("Config file line %d: %s with RIG is only available when hamlib support is enabled.\n", line, otname);
#endif
}
else if (strcasecmp( t, "CHN") == 0) {
p_audio_config->achan[channel].octrl[ot].ptt_method = PTT_METHOD_AUDIO;
}
else {
/* serial port case. */