1
0
Fork 0

ListGo and ListGoto get implemented separately

This commit is contained in:
Kevin Matz 2018-10-26 16:29:43 -04:00
parent 90209dd49a
commit 3b48186a79
1 changed files with 6 additions and 4 deletions

View File

@ -220,10 +220,12 @@ class OscCommentMacroListener(CommentMacroListener):
def exitListGo(self, ctx: CommentMacroParser.ListGoContext):
for i in ctx.t.targets:
if ctx.n is not None:
list = str(i) + "." + str(ctx.n.value)
else:
list = i
logger.info("Go on List " + str(i))
self.osc.send_message(ctx.dev, "/hog/playback/go/0", i)
def exitListGoto(self, ctx: CommentMacroParser.ListGotoContext):
for i in ctx.t.targets:
list = str(i) + "." + str(ctx.n.value)
logger.info("Go on List " + str(list))
self.osc.send_message(ctx.dev, "/hog/playback/go/0", list)