mirror of
https://github.com/saitohirga/WSJT-X.git
synced 2024-11-19 10:32:02 -05:00
Minor cleanup of HRD-related code.
git-svn-id: svn+ssh://svn.code.sf.net/p/wsjt/wsjt/branches/wsjtx@3290 ab8295b8-cf94-4d9e-aec4-7959e3be5d79
This commit is contained in:
parent
f838ee13b0
commit
811c207a19
@ -1,4 +1,4 @@
|
||||
//--------------------------------------------------------------- MainWindow
|
||||
//-------------------------------------------------------------- MainWindow
|
||||
#include "mainwindow.h"
|
||||
#include "ui_mainwindow.h"
|
||||
#include "devsetup.h"
|
||||
|
@ -85,6 +85,7 @@ int Rig::open(int n) {
|
||||
if(bConnect) {
|
||||
const wchar_t* context=HRDInterfaceSendMessage(L"Get Context");
|
||||
m_context="[" + QString::fromWCharArray (context,-1) + "] ";
|
||||
HRDInterfaceFreeString(context);
|
||||
return 0;
|
||||
} else {
|
||||
m_hrd=false;
|
||||
@ -117,6 +118,7 @@ int Rig::setFreq(freq_t freq, vfo_t vfo) {
|
||||
const wchar_t* cmnd = (const wchar_t*) t.utf16();
|
||||
const wchar_t* result=HRDInterfaceSendMessage(cmnd);
|
||||
QString t2=QString::fromWCharArray (result,-1);
|
||||
HRDInterfaceFreeString(result);
|
||||
if(t2=="OK") {
|
||||
return 0;
|
||||
} else {
|
||||
|
Loading…
Reference in New Issue
Block a user