Skip to content

Add possibility to define "one" log file name #49

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 4 commits into from
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Remove assert for invalid transmit channel and issue proper message.
  • Loading branch information
wb2osz committed Mar 26, 2016
commit 77a3b50eb88ecfa53b8b6a803533a530d0c619ca
6 changes: 2 additions & 4 deletions tq.c
Original file line number Diff line number Diff line change
Expand Up @@ -214,16 +214,14 @@ void tq_append (int chan, int prio, packet_t pp)
{
packet_t plast;
packet_t pnext;
//int a = ACHAN2ADEV(chan); /* Audio device for channel. */


#if DEBUG
text_color_set(DW_COLOR_DEBUG);
dw_printf ("tq_append (chan=%d, prio=%d, pp=%p)\n", chan, prio, pp);
#endif



assert (chan >= 0 && chan < MAX_CHANS);
assert (prio >= 0 && prio < TQ_NUM_PRIO);

if (pp == NULL) {
Expand All @@ -240,7 +238,7 @@ void tq_append (int chan, int prio, packet_t pp)
}
#endif

if ( ! save_audio_config_p->achan[chan].valid) {
if (chan < 0 || chan >= MAX_CHANS || ! save_audio_config_p->achan[chan].valid) {
text_color_set(DW_COLOR_ERROR);
dw_printf ("ERROR - Request to transmit on invalid radio channel %d.\n", chan);
ax25_delete(pp);
Expand Down