From c8c30b6c616c1b60330b48eae0379f68ea339477 Mon Sep 17 00:00:00 2001 From: Zeanon Date: Sun, 2 Feb 2025 12:55:05 +0100 Subject: [PATCH] . --- ks_includes/printer.py | 10 +++------- panels/pins.py | 1 - screen.py | 2 -- 3 files changed, 3 insertions(+), 10 deletions(-) diff --git a/ks_includes/printer.py b/ks_includes/printer.py index b319e9f66..874a54405 100644 --- a/ks_includes/printer.py +++ b/ks_includes/printer.py @@ -111,6 +111,7 @@ def log_counts(self, printer_info): logging.info(f"# Fans: {self.fancount}") logging.info(f"# Output pins: {self.output_pin_count}") logging.info(f"# PWM tools: {self.pwm_tools_count}") + logging.info(f"# PWM cycle_times: {self.pwm_cycle_times_count}") logging.info(f"# Leds: {self.ledcount}") def stop_tempstore_updates(self): @@ -123,8 +124,6 @@ def process_update(self, data): return for x in data: - if x.startswith("pwm_tool"): - logging.info(x) if x == "configfile": if 'config' in data[x]: self.config.update(data[x]['config']) @@ -360,18 +359,15 @@ def get_fan_speed(self, fan="fan"): return speed def get_pin_value(self, pin): - for x in self.data: - logging.info(x) if pin in self.data: - logging.info("Pin in data") + logging.info(f"Pin {pin} in data") return self.data[pin]["value"] elif pin in self.config and 'value' in self.config[pin]: - logging.info("Pin in config") + logging.info(f"Pin {pin} in data") return self.config[pin]["value"] return 0 def get_pin_scale(self, pin): - logging.info(pin) if pin in self.config and 'scale' in self.config[pin]: return float(self.config[pin]['scale']) return 1.0 diff --git a/panels/pins.py b/panels/pins.py index 014ebda56..6843ca327 100644 --- a/panels/pins.py +++ b/panels/pins.py @@ -98,7 +98,6 @@ def set_output_pin(self, widget, event, pin): GLib.timeout_add_seconds(1, self.check_pin_value, pin, widget) def check_pin_value(self, pin, widget=None): - logging.info(f"PIN: {pin}") self.update_pin_value(None, pin, self._printer.get_pin_value(pin)) if widget and isinstance(widget, Gtk.Switch): widget.set_sensitive(True) diff --git a/screen.py b/screen.py index ce9327b31..0cd86eb42 100644 --- a/screen.py +++ b/screen.py @@ -805,8 +805,6 @@ def reload_panels(self, *args): self.show_panel(home) def _websocket_callback(self, action, data): - if "output_pin _BEEPER" in data: - logging.info(f"Output pin in data: {'pwm_tool LED-Bars' in data}") if self.connecting: logging.debug("Not connected") return