log: match Sud's step Heating/Reached lines to requested format
"{descr}({number}) Heating"/"Reached" instead of the reverse
"Heating/Reached to Step {number} ({descr})" ordering.
This commit is contained in:
+2
-1
@@ -214,6 +214,7 @@ class Sud(AttributeChange):
|
|||||||
def temp_reached(self):
|
def temp_reached(self):
|
||||||
if self.state != SudState.RAMPING:
|
if self.state != SudState.RAMPING:
|
||||||
return
|
return
|
||||||
|
self.log.info("{}({}) Reached".format(self.step.get('descr'), self.step['number']))
|
||||||
if 'hold' in self.step:
|
if 'hold' in self.step:
|
||||||
# Same step, ramp phase done - move into its hold phase rather
|
# Same step, ramp phase done - move into its hold phase rather
|
||||||
# than finishing the step. Re-assign self.step (AttributeChange
|
# than finishing the step. Re-assign self.step (AttributeChange
|
||||||
@@ -260,7 +261,7 @@ class Sud(AttributeChange):
|
|||||||
self.state = SudState.RAMPING
|
self.state = SudState.RAMPING
|
||||||
self.user_message = next_step.get('user_message')
|
self.user_message = next_step.get('user_message')
|
||||||
self.step = next_step
|
self.step = next_step
|
||||||
self.log.info("Heating to Step {} ({})".format(next_step['number'], next_step.get('descr')))
|
self.log.info("{}({}) Heating".format(next_step.get('descr'), next_step['number']))
|
||||||
|
|
||||||
def _finish_step(self):
|
def _finish_step(self):
|
||||||
if self.step.get('user_wait_for_continue', False):
|
if self.step.get('user_wait_for_continue', False):
|
||||||
|
|||||||
Reference in New Issue
Block a user