mirror of https://github.com/Desuuuu/klipper.git
heater: Remove redundant float conversion
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
This commit is contained in:
parent
06dbc40f53
commit
7b2f6f89f0
|
@ -81,7 +81,7 @@ class PrinterHeater:
|
||||||
r = math.exp(math.pow(x-y, 1./3.) - math.pow(x+y, 1./3.))
|
r = math.exp(math.pow(x-y, 1./3.) - math.pow(x+y, 1./3.))
|
||||||
return r / (self.pullup_r + r)
|
return r / (self.pullup_r + r)
|
||||||
def adc_callback(self, read_time, read_value):
|
def adc_callback(self, read_time, read_value):
|
||||||
temp = self.calc_temp(float(read_value))
|
temp = self.calc_temp(read_value)
|
||||||
with self.lock:
|
with self.lock:
|
||||||
self.last_temp = temp
|
self.last_temp = temp
|
||||||
self.last_temp_time = read_time
|
self.last_temp_time = read_time
|
||||||
|
|
Loading…
Reference in New Issue