kopia lustrzana https://github.com/f4exb/sdrangel
SDRdaemon: fixed data port parsing
rodzic
cc4b5fa7e6
commit
0924945579
|
@ -42,7 +42,7 @@ SDRDaemonParser::SDRDaemonParser() :
|
|||
m_dataPortOption(QStringList() << "D" << "data-port",
|
||||
"UDP stream data port.",
|
||||
"dataPort",
|
||||
"9091"),
|
||||
"9090"),
|
||||
m_deviceTypeOption(QStringList() << "T" << "device-type",
|
||||
"Device type.",
|
||||
"deviceType",
|
||||
|
@ -155,12 +155,12 @@ void SDRDaemonParser::parse(const QCoreApplication& app)
|
|||
// data port
|
||||
|
||||
QString dataPortStr = m_parser.value(m_dataPortOption);
|
||||
serverPort = serverPortStr.toInt(&ok);
|
||||
serverPort = dataPortStr.toInt(&ok);
|
||||
|
||||
if (ok && (serverPort > 1023) && (serverPort < 65536))
|
||||
{
|
||||
m_dataPort = serverPort;
|
||||
qWarning() << "SDRDaemonParser::parse: data port: " << m_dataPort;
|
||||
qDebug() << "SDRDaemonParser::parse: data port: " << m_dataPort;
|
||||
}
|
||||
else
|
||||
{
|
||||
|
|
Ładowanie…
Reference in New Issue