You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/artisanlib/canvas.py
+13-9Lines changed: 13 additions & 9 deletions
Original file line number
Diff line number
Diff line change
@@ -4776,6 +4776,14 @@ def sample_processing(self, local_flagstart:bool, temp1_readings:List[float], te
4776
4776
self.autoChargeIdx = length_of_qmc_timex - b
4777
4777
self.markChargeSignal.emit(False) # this queues an event which forces a realignment/redraw by resetting the cache ax_background and fires the CHARGE action
4778
4778
4779
+
elif self.TPalarmtimeindex is None and self.timeindex[0] > -1 and len(sample_timex)>0 and ((sample_timex[-1] - sample_timex[self.timeindex[0]]) > self.TP_max_roasttime):
4780
+
try:
4781
+
# if 2:00min (self.TP_max_roasttime) into the roast and TPalarmtimeindex alarmindex not yet set,
4782
+
# we place the TPalarmtimeindex at the current index to enable in airoasters without TP the autoDRY and autoFCs functions and activate the TP Phases LCDs
4783
+
self.TPalarmtimeindex = length_of_qmc_timex - 1
4784
+
except Exception as e: # pylint: disable=broad-except
4785
+
_log.exception(e)
4786
+
4779
4787
# check for TP event if already CHARGEed and not yet recognized (earliest in the next call to sample())
4780
4788
elif self.TPalarmtimeindex is None and self.timeindex[0] > -1 and not self.timeindex[1] and self.timeindex[0]+8 < len(sample_temp2) and self.checkTPalarmtime():
4781
4789
try:
@@ -4787,13 +4795,7 @@ def sample_processing(self, local_flagstart:bool, temp1_readings:List[float], te
4787
4795
self.markTPSignal.emit() # queued
4788
4796
except Exception as e: # pylint: disable=broad-except
4789
4797
_log.exception(e)
4790
-
try:
4791
-
# if 2:30min into the roast and TPalarmtimeindex alarmindex not yet set,
4792
-
# we place the TPalarmtimeindex at the current index to enable in airoasters without TP the autoDRY and autoFCs functions and activate the TP Phases LCDs
4793
-
if self.TPalarmtimeindex is None and ((sample_timex[-1] - sample_timex[self.timeindex[0]]) > self.TP_max_roasttime):
4794
-
self.TPalarmtimeindex = length_of_qmc_timex - 1
4795
-
except Exception as e: # pylint: disable=broad-except
4796
-
_log.exception(e)
4798
+
4797
4799
# autodetect DROP event
4798
4800
# only if 7min into roast and BT>160C/320F
4799
4801
if self.autoDropIdx == 0 and self.autoDropFlag and self.autoDROPenabled and self.timeindex[0] > -1 and self.timeindex[6] == 0 and \
elif (last_event_temp is None and next_event_temp is None and
6199
-
(self.replayType == 0 or self.TPalarmtimeindex is None) and # replay by time active
6201
+
(self.replayType == 0 or # if replay by time is selected
6202
+
(last_event_temp1 is None and last_event_temp2 is None) or # if TP is not yet passed or no event after TP and now has been set
6203
+
(last_event_temp2 is not None and self.replayType == 1) or (last_event_temp1 is not None and self.replayType == 2)) and # replay by temp, but temp did not increase
6200
6204
last_event_time is not None and len(self.timeB)>bge):
6201
6205
# if replay by temp (as one or both of those event_temps is not None), but current temp did not increase we don't
6202
6206
# ramp by time instead as this would confuse everything.
0 commit comments