diff options
author | Kevin O'Connor <kevin@koconnor.net> | 2022-03-29 20:36:10 -0400 |
---|---|---|
committer | Kevin O'Connor <kevin@koconnor.net> | 2022-03-29 20:37:03 -0400 |
commit | c08f83ff470c2bb0b87f9e6f36b50099f80a5904 (patch) | |
tree | 1527926e53c00b6a066714fc62543d22b0ea3394 /klippy/extras | |
parent | 4d1c3478ab4cc627e7c182fa8864866582638fbe (diff) | |
download | kutter-c08f83ff470c2bb0b87f9e6f36b50099f80a5904.tar.gz kutter-c08f83ff470c2bb0b87f9e6f36b50099f80a5904.tar.xz kutter-c08f83ff470c2bb0b87f9e6f36b50099f80a5904.zip |
pid_calibrate: Improve Python3 compatibility in debug file output
Reported by @kpishere.
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
Diffstat (limited to 'klippy/extras')
-rw-r--r-- | klippy/extras/pid_calibrate.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/klippy/extras/pid_calibrate.py b/klippy/extras/pid_calibrate.py index f269a373..f32f1be7 100644 --- a/klippy/extras/pid_calibrate.py +++ b/klippy/extras/pid_calibrate.py @@ -136,7 +136,7 @@ class ControlAutoTune: pwm = ["pwm: %.3f %.3f" % (time, value) for time, value in self.pwm_samples] out = ["%.3f %.3f" % (time, temp) for time, temp in self.temp_samples] - f = open(filename, "wb") + f = open(filename, "w") f.write('\n'.join(pwm + out)) f.close() |