Skip to content

Commit c9b7c61

Browse files
committed
Issue 510 - List only valid channels for AGW G command.
1 parent 46f31d4 commit c9b7c61

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

src/server.c

+2-6
Original file line numberDiff line numberDiff line change
@@ -1559,6 +1559,7 @@ static THREAD_F cmd_listen_thread (void *arg)
15591559

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

15951596
default:
1596-
{
1597-
// could elaborate with hostname, etc.
1598-
char stemp[100];
1599-
snprintf (stemp, sizeof(stemp), "Port%d INVALID CHANNEL;", j+1);
1600-
strlcat (reply.info, stemp, sizeof(reply.info));
1601-
}
1597+
; // Only list valid channels.
16021598
break;
16031599

16041600
} // switch

0 commit comments

Comments
 (0)