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:
parent
49f1ee0207
commit
e0395c69aa
|
@ -108,7 +108,7 @@ class PrinterTemperatureMCU:
|
||||||
def config_samd51(self):
|
def config_samd51(self):
|
||||||
self.config_samd21(addr=0x00800100)
|
self.config_samd21(addr=0x00800100)
|
||||||
def config_stm32f1(self):
|
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)
|
self.base_temperature = self.calc_base(25., 1.43 / 3.3)
|
||||||
def config_stm32f2(self):
|
def config_stm32f2(self):
|
||||||
self.slope = 3.3 / .002500
|
self.slope = 3.3 / .002500
|
||||||
|
|
Loading…
Reference in New Issue