From f84a570dde9bbab7b3f176c2a1e14ff80b56ecc2 Mon Sep 17 00:00:00 2001 From: Kevin O'Connor Date: Sat, 19 Dec 2020 11:19:44 -0500 Subject: [PATCH] temperature_mcu: Fix slope on stm32f070 The stm32f070 has a negative temperature slope. Signed-off-by: Kevin O'Connor --- klippy/extras/temperature_mcu.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/klippy/extras/temperature_mcu.py b/klippy/extras/temperature_mcu.py index cb095d88..45e85070 100644 --- a/klippy/extras/temperature_mcu.py +++ b/klippy/extras/temperature_mcu.py @@ -121,7 +121,7 @@ class PrinterTemperatureMCU: def config_stm32f042(self): self.config_stm32f4(addr1=0x1FFFF7B8, addr2=0x1FFFF7C2) def config_stm32f070(self): - self.slope = 3.3 / .004300 + self.slope = 3.3 / -.004300 cal_adc_30 = self.read16(0x1FFFF7B8) / 4095. self.base_temperature = self.calc_base(30., cal_adc_30) def read16(self, addr):