diff options
author | Kevin O'Connor <kevin@koconnor.net> | 2016-09-15 12:15:35 -0400 |
---|---|---|
committer | Kevin O'Connor <kevin@koconnor.net> | 2016-09-15 12:15:35 -0400 |
commit | 7b2f6f89f0189b30d1806549f9379356effdb522 (patch) | |
tree | 1c8bedd5587a5ba32e84ded308377d376109c86f | |
parent | 06dbc40f5367999b01bbc91d0ece10aef85f8538 (diff) | |
download | kutter-7b2f6f89f0189b30d1806549f9379356effdb522.tar.gz kutter-7b2f6f89f0189b30d1806549f9379356effdb522.tar.xz kutter-7b2f6f89f0189b30d1806549f9379356effdb522.zip |
heater: Remove redundant float conversion
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
-rw-r--r-- | klippy/heater.py | 2 |
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 |