1
0
Fork 0

correct logic for asserting current master

This commit is contained in:
Kevin Matz 2018-10-28 18:20:00 -04:00
parent 39410593ee
commit 006229f0e0
1 changed files with 2 additions and 2 deletions

View File

@ -157,10 +157,10 @@ class OscCommentMacroListener(CommentMacroListener):
continue
master = str(i)
logger.info("HALT on master " + master)
self.osc.button_press(ctx.device(), "/hog/hardware/pause/" + master)
self.osc.button_press(ctx.device(), "/hog/hardware/pause/"+master)
def exitMasterAssert(self, ctx: CommentMacroParser.MasterAssertContext):
if ctx.target()is None:
if ctx.target()is not None:
logger.error("ERROR: limited to asserting current master only.")
return
logger.info("ASSERT on current master.")