Skip to content

Commit

Permalink
.
Browse files Browse the repository at this point in the history
  • Loading branch information
Zeanon committed Feb 2, 2025
1 parent d9fc98d commit 9b20a77
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
3 changes: 3 additions & 0 deletions ks_includes/printer.py
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,9 @@ def stop_tempstore_updates(self):
GLib.source_remove(self.store_timeout)
self.store_timeout = None

def process_force_query(self, result, method, params):
self.process_update(result["result"])

def process_update(self, data):
if self.data is None:
return
Expand Down
7 changes: 1 addition & 6 deletions screen.py
Original file line number Diff line number Diff line change
Expand Up @@ -331,12 +331,7 @@ def ws_subscribe(self):

logging.info(f"Requested Updates: {requested_updates}")
self._ws.klippy.object_subscription(requested_updates)
self._ws.klippy.force_query(requested_updates, self.force_query_result)

def force_query_result(self, result, method, params):
logging.info(f"result: {result}")
logging.info(f"method: {method}")
logging.info(f"params: {params}")
self._ws.klippy.force_query(requested_updates, self.printer.process_force_query)

@staticmethod
def _load_panel(panel):
Expand Down

0 comments on commit 9b20a77

Please sign in to comment.