Skip to content

Commit

Permalink
Show Error for Channel-Group- with Offset=0
Browse files Browse the repository at this point in the history
  • Loading branch information
cornelius-koepp committed Oct 12, 2024
1 parent 6bb869f commit 2b4fe99
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/ConfigTransfer.script.js
Original file line number Diff line number Diff line change
Expand Up @@ -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!
Expand Down

0 comments on commit 2b4fe99

Please sign in to comment.