diff --git a/CLC-qthing/SiliconTorch/Service/SpiderFurnace.cpp b/CLC-qthing/SiliconTorch/Service/SpiderFurnace.cpp index fc9e3e6db4e832860535e29135a841de78ea99b7..3c3170eba6bbaaacf833b0839074a9f1a46c995f 100644 --- a/CLC-qthing/SiliconTorch/Service/SpiderFurnace.cpp +++ b/CLC-qthing/SiliconTorch/Service/SpiderFurnace.cpp @@ -176,9 +176,13 @@ namespace SiliconTorch { if (cnt++ >= 10) { - u64 logAge = Time::ms() - lastLogTime; - f32 logDeltaT = temperature() - lastLogTemp; - lastLogTime = Time::ms(); + u64 timeMS = Time::ms(); + f32 _temp = temperature(); + + u64 logAge = timeMS - lastLogTime; + f32 logDeltaT = _temp - lastLogTemp; + lastLogTime = timeMS; + lastLogTemp = _temp; f32 tempChangeRate = logDeltaT / (logAge / 1000.0f); // K/s