Fully make use of ECA for multiple channels

This commit is contained in:
Mark Veidemanis 2022-08-13 21:40:53 +01:00
parent c7fa508a38
commit 9780a2dfc8
Signed by: m
GPG Key ID: 5ACFCEED46C0904F
1 changed files with 5 additions and 1 deletions

View File

@ -276,6 +276,10 @@ def joinSingle(net, channel):
:return: relay number that joined the channel :return: relay number that joined the channel
:rtype: int :rtype: int
""" """
if "," in channel:
channels = channel.split(",")
eca = emptyChanAllocate(net, channels)
else:
eca = emptyChanAllocate(net, [channel]) eca = emptyChanAllocate(net, [channel])
if not eca: if not eca:
return False return False