From 0c1c350a9302693f0f514272cff30c7b703fbd4f Mon Sep 17 00:00:00 2001 From: Yuri D'Elia Date: Fri, 27 May 2022 00:10:23 +0200 Subject: [PATCH] Simplify one expression --- Firmware/temperature.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Firmware/temperature.cpp b/Firmware/temperature.cpp index 00cd8a8e1..5a10df022 100755 --- a/Firmware/temperature.cpp +++ b/Firmware/temperature.cpp @@ -2320,7 +2320,7 @@ static const float TM_fS = 0.065; // simulation (1st-order IIR factor) static const float TM_fE = 0.05; // error (1st-order IIR factor) static const float TM_err = 1.; // error threshold (K/s) -static const float TM_err_s = TM_err / (1./TEMP_MGR_INTV); // error threshold (per sample) +static const float TM_err_s = (TM_err * TEMP_MGR_INTV); // error threshold (per sample) static float TM_dT_buf[TM_dTs]; // transport delay buffer static uint8_t TM_dT_idx = 0; // transport delay buffer index