Issue 510 - List only valid channels for AGW G command.

This commit is contained in:
wb2osz 2024-01-26 00:06:04 +00:00
parent 46f31d4453
commit c9b7c61f2c
1 changed files with 2 additions and 6 deletions

View File

@ -1559,6 +1559,7 @@ static THREAD_F cmd_listen_thread (void *arg)
case MEDIUM_RADIO: case MEDIUM_RADIO:
{ {
// Misleading if using stdin or udp.
char stemp[100]; char stemp[100];
int a = ACHAN2ADEV(j); int a = ACHAN2ADEV(j);
// If I was really ambitious, some description could be provided. // If I was really ambitious, some description could be provided.
@ -1593,12 +1594,7 @@ static THREAD_F cmd_listen_thread (void *arg)
break; break;
default: default:
{ ; // Only list valid channels.
// 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));
}
break; break;
} // switch } // switch