Skip to content

Commit

Permalink
Issue 510 - List only valid channels for AGW G command.
Browse files Browse the repository at this point in the history
  • Loading branch information
wb2osz committed Jan 26, 2024
1 parent 46f31d4 commit c9b7c61
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions src/server.c
Original file line number Diff line number Diff line change
Expand Up @@ -1559,6 +1559,7 @@ static THREAD_F cmd_listen_thread (void *arg)

case MEDIUM_RADIO:
{
// Misleading if using stdin or udp.
char stemp[100];
int a = ACHAN2ADEV(j);
// If I was really ambitious, some description could be provided.
Expand Down Expand Up @@ -1593,12 +1594,7 @@ static THREAD_F cmd_listen_thread (void *arg)
break;

default:
{
// could elaborate with hostname, etc.
char stemp[100];
snprintf (stemp, sizeof(stemp), "Port%d INVALID CHANNEL;", j+1);
strlcat (reply.info, stemp, sizeof(reply.info));
}
; // Only list valid channels.
break;

} // switch
Expand Down

0 comments on commit c9b7c61

Please sign in to comment.