mirror of
https://github.com/jankae/LibreVNA.git
synced 2026-04-04 22:17:31 +00:00
Fix :DEV:CONN SCPI command
This commit is contained in:
parent
f6ff4727c8
commit
54de9fd6b0
1 changed files with 5 additions and 1 deletions
|
|
@ -491,9 +491,13 @@ void AppWindow::SetupSCPI()
|
|||
QString serial;
|
||||
if(params.size() > 0) {
|
||||
serial = params[0];
|
||||
} else if(UpdateDeviceList() > 0) {
|
||||
serial = deviceList[0].serial;
|
||||
} else {
|
||||
return SCPI::getResultName(SCPI::Result::Error);
|
||||
}
|
||||
if(!ConnectToDevice(serial)) {
|
||||
return "Device not found";
|
||||
return SCPI::getResultName(SCPI::Result::Error);
|
||||
} else {
|
||||
return SCPI::getResultName(SCPI::Result::Empty);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue