From c08f83ff470c2bb0b87f9e6f36b50099f80a5904 Mon Sep 17 00:00:00 2001 From: Kevin O'Connor Date: Tue, 29 Mar 2022 20:36:10 -0400 Subject: [PATCH] pid_calibrate: Improve Python3 compatibility in debug file output Reported by @kpishere. Signed-off-by: Kevin O'Connor --- klippy/extras/pid_calibrate.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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()