mirror of https://github.com/Desuuuu/klipper.git
pid_calibrate: Improve Python3 compatibility in debug file output
Reported by @kpishere. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
This commit is contained in:
parent
4d1c3478ab
commit
c08f83ff47
|
@ -136,7 +136,7 @@ class ControlAutoTune:
|
||||||
pwm = ["pwm: %.3f %.3f" % (time, value)
|
pwm = ["pwm: %.3f %.3f" % (time, value)
|
||||||
for time, value in self.pwm_samples]
|
for time, value in self.pwm_samples]
|
||||||
out = ["%.3f %.3f" % (time, temp) for time, temp in self.temp_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.write('\n'.join(pwm + out))
|
||||||
f.close()
|
f.close()
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue