Commit 3b0a5089 authored by bliss administrator's avatar bliss administrator Committed by Cyril Guilloud
Browse files

musst controller: add _reset_cmd to also reset internal __last_md5.value

parent 7f8bf486
Pipeline #46556 failed with stages
in 111 minutes and 31 seconds
......@@ -54,6 +54,16 @@ def _clear_cmd():
return property(exec_cmd, doc="Delete the current program")
def _reset_cmd():
def exec_cmd(self):
return self.putget("RESET")
self._musst__last_md5.value = None
return property(exec_cmd, doc="Musst reset")
def lazy_init(func):
def f(self, *args, **kwargs):
......@@ -263,7 +273,7 @@ class musst(CounterContainer):
ABORT = _simple_cmd("ABORT", "Program abort")
STOP = _simple_cmd("STOP", "Program stop")
RESET = _simple_cmd("RESET", "Musst reset")
RESET = _reset_cmd()
CONT = _simple_cmd(
"CONT", "Continue the program when stopped in STOP or BREAK states"
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment