kopia lustrzana https://gitlab.com/eliggett/wfview
Merge remote-tracking branch 'origin/lan-alpha' into ui-enhance
commit
a9d430b271
|
@ -615,7 +615,7 @@ void rigCommander::setCIVAddr(unsigned char civAddr)
|
|||
}
|
||||
|
||||
void rigCommander::handleNewData(const QByteArray &data)
|
||||
{
|
||||
{
|
||||
emit haveDataForServer(data);
|
||||
parseData(data);
|
||||
}
|
||||
|
|
10
wfmain.cpp
10
wfmain.cpp
|
@ -384,11 +384,11 @@ wfmain::wfmain(const QString serialPortCL, const QString hostCL, QWidget *parent
|
|||
// Metering
|
||||
connect(this, SIGNAL(getMeters(bool)), rig, SLOT(getMeters(bool)));
|
||||
|
||||
|
||||
// Server (these two lines caused my version to crash, not sure why yet)
|
||||
//connect(rig, SIGNAL(haveDataForServer(QByteArray)), udp, SLOT(dataForServer(QByteArray)));
|
||||
//connect(udp, SIGNAL(haveDataFromServer(QByteArray)), rig, SLOT(dataFromServer(QByteArray)));
|
||||
|
||||
if (serverConfig.enabled && udp != Q_NULLPTR) {
|
||||
// Server
|
||||
connect(rig, SIGNAL(haveDataForServer(QByteArray)), udp, SLOT(dataForServer(QByteArray)));
|
||||
connect(udp, SIGNAL(haveDataFromServer(QByteArray)), rig, SLOT(dataFromServer(QByteArray)));
|
||||
}
|
||||
|
||||
ui->plot->addGraph(); // primary
|
||||
ui->plot->addGraph(0, 0); // secondary, peaks, same axis as first?
|
||||
|
|
3
wfmain.h
3
wfmain.h
|
@ -564,7 +564,8 @@ private:
|
|||
calibrationWindow *cal;
|
||||
satelliteSetup *sat;
|
||||
udpServerSetup *srv;
|
||||
udpServer *udp;
|
||||
|
||||
udpServer *udp = Q_NULLPTR;
|
||||
QThread *serverThread = Q_NULLPTR;
|
||||
|
||||
void bandStackBtnClick();
|
||||
|
|
Ładowanie…
Reference in New Issue