From 92f5b18481a18856963c2f5c532c000f291cf3d6 Mon Sep 17 00:00:00 2001 From: "J.A. de Jong - Redu-Sone B.V., ASCEE V.O.F" Date: Fri, 10 Mar 2023 15:44:19 +0100 Subject: [PATCH] Not allowing a monitor when not running in duplex mode --- src/lasp/device/lasp_daq.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/lasp/device/lasp_daq.cpp b/src/lasp/device/lasp_daq.cpp index c545980..2c39627 100644 --- a/src/lasp/device/lasp_daq.cpp +++ b/src/lasp/device/lasp_daq.cpp @@ -44,6 +44,9 @@ Daq::Daq(const DeviceInfo &devinfo, const DaqConfiguration &config) 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) { throw rte(