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:
Kevin O'Connor 2022-03-29 20:36:10 -04:00
parent 4d1c3478ab
commit c08f83ff47
1 changed files with 1 additions and 1 deletions

View File

@ -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()