correct logic for asserting current master
This commit is contained in:
parent
39410593ee
commit
006229f0e0
|
@ -157,10 +157,10 @@ class OscCommentMacroListener(CommentMacroListener):
|
||||||
continue
|
continue
|
||||||
master = str(i)
|
master = str(i)
|
||||||
logger.info("HALT on master " + master)
|
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):
|
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.")
|
logger.error("ERROR: limited to asserting current master only.")
|
||||||
return
|
return
|
||||||
logger.info("ASSERT on current master.")
|
logger.info("ASSERT on current master.")
|
||||||
|
|
Loading…
Reference in New Issue