From 9780a2dfc8cddc42012326f1472b9182e89bc514 Mon Sep 17 00:00:00 2001 From: Mark Veidemanis Date: Sat, 13 Aug 2022 21:40:53 +0100 Subject: [PATCH] Fully make use of ECA for multiple channels --- modules/chankeep.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/modules/chankeep.py b/modules/chankeep.py index edbdf96..263c3b5 100644 --- a/modules/chankeep.py +++ b/modules/chankeep.py @@ -276,7 +276,11 @@ def joinSingle(net, channel): :return: relay number that joined the channel :rtype: int """ - eca = emptyChanAllocate(net, [channel]) + if "," in channel: + channels = channel.split(",") + eca = emptyChanAllocate(net, channels) + else: + eca = emptyChanAllocate(net, [channel]) if not eca: return False if not len(eca.keys()) == 1: