From c3ec7a81bbe1490b76202485d0502a4829a3cee5 Mon Sep 17 00:00:00 2001 From: zkk <1007518571@qq.com> Date: Fri, 3 Jan 2025 17:52:24 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E5=B1=8F=E5=B9=95=E8=80=97?= =?UTF-8?q?=E6=9D=90=E6=A3=80=E6=B5=8B=E6=98=BE=E7=A4=BA=E5=81=B6=E5=B0=94?= =?UTF-8?q?=E4=B8=8D=E5=87=86=E7=A1=AE=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- panels/extrude.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/panels/extrude.py b/panels/extrude.py index 69fadd42..8601159d 100644 --- a/panels/extrude.py +++ b/panels/extrude.py @@ -138,6 +138,10 @@ class Panel(ScreenPanel): speedbox.add(speedgrid) filament_sensors = self._printer.get_filament_sensors() + res = self._screen.apiclient.send_request("printer/objects/query?" + "&".join(filament_sensors)) + if res.get('status'): + self._printer.data.update(res['status']) + sensors = Gtk.Grid(valign=Gtk.Align.CENTER, row_spacing=5, column_spacing=5) if len(filament_sensors) > 0: for s, x in enumerate(filament_sensors):