diff --git a/pattern.py b/pattern.py index 4fb9d85..c8a49e3 100644 --- a/pattern.py +++ b/pattern.py @@ -81,15 +81,13 @@ def apply(index, targets, args, func): index, this.values[targets[target]['channel']], args[target], func) if val != this.values[targets[target]['channel']]: this.values[targets[target]['channel']] = val + return jump else: val, jump = _apply( index, this.values[targets[target]['channel']], 0, func) if val != this.values[targets[target]['channel']]: this.values[targets[target]['channel']] = val - logger.debug("{} : {}".format( - targets[target]['channel'], - this.values[targets[target]['channel']] - )) + return jump this.instructions = {