aboutsummaryrefslogtreecommitdiffstats
path: root/klippy/heater.py
diff options
context:
space:
mode:
authorKevin O'Connor <kevin@koconnor.net>2016-09-15 12:15:35 -0400
committerKevin O'Connor <kevin@koconnor.net>2016-09-15 12:15:35 -0400
commit7b2f6f89f0189b30d1806549f9379356effdb522 (patch)
tree1c8bedd5587a5ba32e84ded308377d376109c86f /klippy/heater.py
parent06dbc40f5367999b01bbc91d0ece10aef85f8538 (diff)
downloadkutter-7b2f6f89f0189b30d1806549f9379356effdb522.tar.gz
kutter-7b2f6f89f0189b30d1806549f9379356effdb522.tar.xz
kutter-7b2f6f89f0189b30d1806549f9379356effdb522.zip
heater: Remove redundant float conversion
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
Diffstat (limited to 'klippy/heater.py')
-rw-r--r--klippy/heater.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/klippy/heater.py b/klippy/heater.py
index 29f29232..78189e3a 100644
--- a/klippy/heater.py
+++ b/klippy/heater.py
@@ -81,7 +81,7 @@ class PrinterHeater:
r = math.exp(math.pow(x-y, 1./3.) - math.pow(x+y, 1./3.))
return r / (self.pullup_r + r)
def adc_callback(self, read_time, read_value):
- temp = self.calc_temp(float(read_value))
+ temp = self.calc_temp(read_value)
with self.lock:
self.last_temp = temp
self.last_temp_time = read_time