mvr refactor cont'd
This commit is contained in:
@@ -12,8 +12,6 @@ class SpecConvenience:
|
||||
def mvr(self, value, *args, **kwargs):
|
||||
if hasattr(self, "current_task") and self.current_task and not (self.current_task.status() == "done"):
|
||||
startvalue = self.current_task.target
|
||||
elif hasattr(self, "is_moving") and not self.is_moving():
|
||||
startvalue = self.get_current_value(*args, **kwargs) # readback=True is the default!
|
||||
else:
|
||||
startvalue = self.get_current_value(*args, **kwargs)
|
||||
self.current_task = self.set_target_value(value + startvalue, *args, **kwargs)
|
||||
|
||||
Reference in New Issue
Block a user