temperature_mcu: Fix slope on stm32f070
The stm32f070 has a negative temperature slope. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
This commit is contained in:
parent
e0395c69aa
commit
f84a570dde
|
@ -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):
|
||||
|
|
Loading…
Reference in New Issue