Skip to content

Update Makefile #76

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 12 commits into from
Prev Previous commit
Next Next commit
start changes
  • Loading branch information
va7yaa committed Jan 11, 2017
commit 72cd5dbc26a848e5f2baa08a73f907e68a0e40e9
3 changes: 2 additions & 1 deletion audio.h
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down
5 changes: 4 additions & 1 deletion config.c
Original file line number Diff line number Diff line change
Expand Up @@ -1582,7 +1582,10 @@ 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 {
else if (strcasecmp( t, "CHN") == 0) {
p_audio_config->achan[channel].octrl[ot].ptt_method = PTT_METHOD_AUDIO;
}
else {

/* serial port case. */

Expand Down