A few small fixes

translations
Phil Taylor 2024-05-05 16:27:55 +01:00
rodzic 5dfbf5e2c4
commit 1cf74c75e7
5 zmienionych plików z 21 dodań i 7 usunięć

Wyświetl plik

@ -38,8 +38,22 @@ icomCommander::icomCommander(quint8 guid[GUIDLEN], rigCommander* parent) : rigCo
icomCommander::~icomCommander()
{
qInfo(logRig()) << "closing instance of icomCommander()";
queue->setRigCaps(Q_NULLPTR); // Remove access to rigCaps
closeComm();
qDebug(logRig()) << "Closing rig comms";
if (comm != Q_NULLPTR) {
delete comm;
}
if (udpHandlerThread != Q_NULLPTR) {
udpHandlerThread->quit();
udpHandlerThread->wait();
}
if (ptty != Q_NULLPTR) {
delete ptty;
}
}
@ -218,8 +232,6 @@ void icomCommander::commonSetup()
rigCaps.commands.insert(funcTransceiverId,funcType(funcTransceiverId, QString("Transceiver ID"),QByteArrayLiteral("\x19\x00"),0,0,false,true,false));
rigCaps.commandsReverse.insert(QByteArrayLiteral("\x19\x00"),funcTransceiverId);
this->setObjectName("Icom Commander");
queue = cachingQueue::getInstance(this);
connect(queue,SIGNAL(haveCommand(funcs,QVariant,uchar)),this,SLOT(receiveCommand(funcs,QVariant,uchar)));
oldScopeMode = spectModeUnknown;

Wyświetl plik

@ -162,8 +162,6 @@ private:
1, 10, 100, 1000, 10000, 100000, 1000000, 10000000, 100000000, 1000000000, 10000000000, 100000000000
};
cachingQueue* queue;
#ifdef DEBUG_PARSE
quint64 averageParseTime=0;
int numParseSamples = 0;

Wyświetl plik

@ -12,14 +12,17 @@
rigCommander::rigCommander(QObject* parent) : QObject(parent)
{
qInfo(logRig()) << "creating instance of rigCommander()";
queue = cachingQueue::getInstance(this);
}
rigCommander::rigCommander(quint8 guid[GUIDLEN], QObject* parent) : QObject(parent)
{
qInfo(logRig()) << "creating instance of rigCommander()";
qInfo(logRig()) << "creating instance of rigCommander(guid)";
memcpy(this->guid, guid, GUIDLEN);
// Add some commands that is a minimum for rig detection
queue = cachingQueue::getInstance(this);
}
rigCommander::~rigCommander()

Wyświetl plik

@ -133,6 +133,8 @@ signals:
void haveReceivedValue(funcs func, QVariant value);
protected:
cachingQueue* queue;
void printHex(const QByteArray &pdata);
void printHex(const QByteArray &pdata, bool printVert, bool printHoriz);

Wyświetl plik

@ -489,7 +489,6 @@ void wfmain::makeRig()
rigThread = new QThread(this);
rigThread->setObjectName("rigCommander()");
// Thread:
rig->moveToThread(rigThread);
connect(rigThread, SIGNAL(started()), rig, SLOT(process()));