Fix linux compile error

merge-requests/2/head
Phil Taylor 2021-04-19 17:49:51 +01:00
rodzic b3758d210f
commit cb434d694e
3 zmienionych plików z 11 dodań i 3 usunięć

Wyświetl plik

@ -40,6 +40,11 @@ struct freqt {
double MHzDouble;
};
struct rigStateStruct {
freqt vfoAFreq;
freqt vfoBFreq;
};
class rigCommander : public QObject
{
Q_OBJECT
@ -345,6 +350,9 @@ private:
double spectrumEndFreq;
struct rigCapabilities rigCaps;
rigStateStruct rigState;
bool haveRigCaps;
model_kind model;
quint8 spectSeqMax;

Wyświetl plik

@ -68,13 +68,12 @@ void rigCtlClient::socketReadyRead()
{
// Process command
qDebug(logRigCtlD()) << sessionId << "command received" << commandBuffer;
QString cmd = commandBuffer[0];
if (cmd.toLower() == "q")
if (commandBuffer[0].toLower() == "q")
{
closeSocket();
}
else if (cmd == "1")
else if (commandBuffer[0] == "1")
{
dumpCaps();
}

Wyświetl plik

@ -552,6 +552,7 @@ private:
preferences defPrefs;
udpPreferences udpPrefs;
udpPreferences udpDefPrefs;
colors defaultColors;
void setDefaultColors(); // populate with default values