Fully make use of ECA for multiple channels

master
Mark Veidemanis 2 years ago
parent 5c95f35c61
commit 16133fb7b4

@ -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:

Loading…
Cancel
Save