From 70093fc9dc49395ecb128b82b8b3dc290a10cabc Mon Sep 17 00:00:00 2001 From: Yuri D'Elia <wavexx@thregr.org> Date: Thu, 26 May 2022 23:51:07 +0200 Subject: [PATCH] Allow to redefine basic model constants --- Firmware/temperature.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Firmware/temperature.cpp b/Firmware/temperature.cpp index 8ba78e3e..00cd8a8e 100755 --- a/Firmware/temperature.cpp +++ b/Firmware/temperature.cpp @@ -2305,11 +2305,13 @@ static void check_temp_raw() } #ifdef TEMP_MODEL_CHECK +#ifndef TEMP_MODEL_VARS static const float TM_P = 38.; // heater power (W) static const float TM_C = 11.9; // heatblock capacitance (J/K) static const float TM_R = 27.; // heatblock resistance static const float TM_Rf = -20.; // full-power fan resistance change static const float TM_aC = -5; // ambient temperature correction (K) +#endif static const float TM_dTl = 2.1; // temperature transport delay (s) static const uint8_t TM_dTs = (TM_dTl / TEMP_MGR_INTV + 0.5); // temperature transport delay (samples)