From 7b2f6f89f0189b30d1806549f9379356effdb522 Mon Sep 17 00:00:00 2001 From: Kevin O'Connor Date: Thu, 15 Sep 2016 12:15:35 -0400 Subject: [PATCH] heater: Remove redundant float conversion Signed-off-by: Kevin O'Connor --- klippy/heater.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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