From 2b4fe992288fdc08b907a140f4ee3a3100139838 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cornelius=20K=C3=B6pp?= Date: Sat, 12 Oct 2024 20:51:38 +0200 Subject: [PATCH] Show Error for Channel-Group- with Offset=0 --- src/ConfigTransfer.script.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/ConfigTransfer.script.js b/src/ConfigTransfer.script.js index e8ff8c5..0fefbee 100644 --- a/src/ConfigTransfer.script.js +++ b/src/ConfigTransfer.script.js @@ -161,7 +161,8 @@ function uctBtnCopy(device, online, progress, context) { result.push(uctCopyModuleChannel(device, module, sourceChannels[i], sourceChannels[i] + offset)); } } else /* (offset == 0) */ { - // should never happen + // all channes are the same + throw new Error('Quell- und Ziel-Kanal dürfen NICHT identisch sein!'); } // hide for disjoint only!