Fully make use of ECA for multiple channels
This commit is contained in:
parent
c7fa508a38
commit
9780a2dfc8
|
@ -276,6 +276,10 @@ def joinSingle(net, channel):
|
|||
:return: relay number that joined the channel
|
||||
:rtype: int
|
||||
"""
|
||||
if "," in channel:
|
||||
channels = channel.split(",")
|
||||
eca = emptyChanAllocate(net, channels)
|
||||
else:
|
||||
eca = emptyChanAllocate(net, [channel])
|
||||
if not eca:
|
||||
return False
|
||||
|
|
Loading…
Reference in New Issue