job_status: show acceleration as integer

usually is in the thousands, it shouldn't matter
This commit is contained in:
alfrix 2022-08-31 05:58:10 -03:00 committed by Alfredo Monclus
parent 657f1b133f
commit 54764be269

View File

@ -565,7 +565,7 @@ class JobStatusPanel(ScreenPanel):
self.labels['temp_grid'].attach(self.extruder_button[self.current_extruder], 0, 0, 1, 1)
self._screen.show_all()
with contextlib.suppress(KeyError):
self.labels['max_accel'].set_text(f"{data['toolhead']['max_accel']} mm/s²")
self.labels['max_accel'].set_text(f"{data['toolhead']['max_accel']:.0f} mm/s²")
with contextlib.suppress(KeyError):
self.labels['advance'].set_text(f"{data['extruder']['pressure_advance']:.2f}")