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 committed 2022-03-29 20:37:03 -04:00
1 parent 4d1c3478ab
commit c08f83ff47
1 file changed
+1 -1
+1 -1
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()