From a99d8d40719635e6a77ab8ac603c8735e15dc5e1 Mon Sep 17 00:00:00 2001 From: Andrea Baccega Date: Sun, 28 Jan 2024 02:55:43 +0100 Subject: [PATCH] pd --- src/reflow.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/reflow.h b/src/reflow.h index 42c36ec..e0d5397 100644 --- a/src/reflow.h +++ b/src/reflow.h @@ -179,7 +179,7 @@ public: */ float getTargetTempFromPercentage(double processPercentage) { - uint16_t duration = endTimes[4]; + uint32_t duration = endTimes[4]; uint8_t startTemp = 20; // always assume 20 degrees at the start return getTargetTemp(duration * 1000 * processPercentage); } @@ -187,7 +187,7 @@ public: uint8_t getCurrentStepRelativeTime() { uint32_t elapsedMS = timer.elapsed(); - uint16_t startTimeMS = startTimes[STEPINDEX(reflowStep())] * 1000; + uint32_t startTimeMS = startTimes[STEPINDEX(reflowStep())] * 1000; return (elapsedMS - startTimeMS) / 1000; }