Fix :DEV:CONN SCPI command
This commit is contained in:
parent
f6ff4727c8
commit
54de9fd6b0
@ -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…
Reference in New Issue
Block a user