aboutsummaryrefslogtreecommitdiffstats
path: root/klippy/extras
diff options
context:
space:
mode:
authorKevin O'Connor <kevin@koconnor.net>2020-12-19 11:19:44 -0500
committerKevin O'Connor <kevin@koconnor.net>2020-12-19 11:19:44 -0500
commitf84a570dde9bbab7b3f176c2a1e14ff80b56ecc2 (patch)
tree6fa1a5e1a26db6e54d1092660dfacb2527e65ace /klippy/extras
parente0395c69aacc51c807129164e616e32f42c57a97 (diff)
downloadkutter-f84a570dde9bbab7b3f176c2a1e14ff80b56ecc2.tar.gz
kutter-f84a570dde9bbab7b3f176c2a1e14ff80b56ecc2.tar.xz
kutter-f84a570dde9bbab7b3f176c2a1e14ff80b56ecc2.zip
temperature_mcu: Fix slope on stm32f070
The stm32f070 has a negative temperature slope. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
Diffstat (limited to 'klippy/extras')
-rw-r--r--klippy/extras/temperature_mcu.py2
1 files changed, 1 insertions, 1 deletions
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):