temperature_mcu: Fix slope on stm32f1

The stm32f103 has a negative temperature slope.

Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
This commit is contained in:
Kevin O'Connor 2020-12-19 10:38:50 -05:00
parent 49f1ee0207
commit e0395c69aa
1 changed files with 1 additions and 1 deletions

View File

@ -108,7 +108,7 @@ class PrinterTemperatureMCU:
def config_samd51(self):
self.config_samd21(addr=0x00800100)
def config_stm32f1(self):
self.slope = 3.3 / .004300
self.slope = 3.3 / -.004300
self.base_temperature = self.calc_base(25., 1.43 / 3.3)
def config_stm32f2(self):
self.slope = 3.3 / .002500