mirror of
https://github.com/jankae/LibreVNA.git
synced 2026-04-07 23:43:42 +00:00
WIP: device driver abstraction
This commit is contained in:
parent
59e30e93c5
commit
db6d823e0f
42 changed files with 1631 additions and 576 deletions
|
|
@ -98,7 +98,7 @@ void Generator::setupSCPI()
|
|||
}));
|
||||
add(new SCPICommand("PORT", [=](QStringList params) -> QString {
|
||||
unsigned long long newval;
|
||||
if(!SCPI::paramToULongLong(params, 0, newval) || newval > VirtualDevice::getInfo(window->getDevice()).ports) {
|
||||
if(!SCPI::paramToULongLong(params, 0, newval) || newval > DeviceDriver::getInfo(window->getDevice()).Limits.Generator.ports) {
|
||||
return SCPI::getResultName(SCPI::Result::Error);
|
||||
} else {
|
||||
central->setPort(newval);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue