implement Release Master
This commit is contained in:
parent
31eb6a2af8
commit
7c54d9fb1e
|
@ -107,6 +107,13 @@ class HogDevice():
|
|||
logger.info("ASSERT on current master.")
|
||||
self.osc.button_press(ctx.device, "/hog/hardware/assert")
|
||||
|
||||
def _master_release(self, ctx):
|
||||
if (len(ctx.master.targets) != 0):
|
||||
logger.error("ERROR: limited to releasing current master only.")
|
||||
return
|
||||
logger.info("RELEASE on current master.")
|
||||
self.osc.button_press(ctx.device, "/hog/hardware/release")
|
||||
|
||||
def _master_fade(self, ctx):
|
||||
if (ctx.number) is None:
|
||||
logger.error("ERROR: Missing required argument for LEVEL")
|
||||
|
@ -194,6 +201,7 @@ class HogDevice():
|
|||
command = {"GM": _master_go,
|
||||
"HM": _master_halt,
|
||||
"AM": _master_assert,
|
||||
"RM": _master_release,
|
||||
"FM": _master_fade,
|
||||
"FGM": _master_fade_grand,
|
||||
"CM": _master_choose,
|
||||
|
|
|
@ -66,11 +66,11 @@ Only features that are supported in both OSC and Comment Macros are able to be i
|
|||
| GM | Go Master | Yes | |
|
||||
| HM | Halt Master | Yes | |
|
||||
| AM | Assert Master | Yes | on current master only |
|
||||
| RM | Release Master | no | |
|
||||
| RM | Release Master | Yes | on current master only |
|
||||
| RA | Relase All | Yes | |
|
||||
| RO | Release Others | no | |
|
||||
| FM | Fade Master | Yes | no times, no *
|
||||
| FGM | Fade Grand Master | Yes | no times
|
||||
| FM | Fade Master | Yes | no times, no * |
|
||||
| FGM | Fade Grand Master | Yes | no times |
|
||||
| CM | Choose Master | Yes | |
|
||||
| GL | Go List | Yes | |
|
||||
| HL | Halt List | Yes | |
|
||||
|
|
Loading…
Reference in New Issue