Add test for less than 6 low temps
This commit is contained in:
+1
-1
@@ -9,7 +9,7 @@ function detectTemperatureShift(temperaturesOfCycle) {
|
||||
// if no shift has been detected, we collect low temps
|
||||
// after the shift has been detected, we count them as part
|
||||
// of the higher temperature phase
|
||||
if (acc.low.length < 7) {
|
||||
if (acc.low.length < 6) {
|
||||
acc.low.push(curr)
|
||||
acc.ltl = Math.max(...acc.low.slice(-6))
|
||||
// TODO these are the same
|
||||
|
||||
Reference in New Issue
Block a user