Not allowing a monitor when not running in duplex mode

This commit is contained in:
Anne de Jong 2023-03-10 15:44:19 +01:00
parent 28d540b667
commit 92f5b18481

View File

@ -44,6 +44,9 @@ Daq::Daq(const DeviceInfo &devinfo, const DaqConfiguration &config)
throw rte("Duplex mode enabled, but no output channels enabled"); throw rte("Duplex mode enabled, but no output channels enabled");
} }
} }
if(!duplexMode() && monitorOutput) {
throw rte("Output monitoring only allowed when running in duplex mode");
}
if (!hasInternalOutputMonitor && monitorOutput) { if (!hasInternalOutputMonitor && monitorOutput) {
throw rte( throw rte(