From 32d0af4679cc02a999cf7242bb5a50ee77825ef4 Mon Sep 17 00:00:00 2001 From: alfrix Date: Sun, 5 May 2024 09:31:20 -0300 Subject: [PATCH] fix screen is blank after update under certain configs --- ks_includes/screen_panel.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ks_includes/screen_panel.py b/ks_includes/screen_panel.py index 1865438a..d3be7920 100644 --- a/ks_includes/screen_panel.py +++ b/ks_includes/screen_panel.py @@ -172,14 +172,14 @@ class ScreenPanel: if dev in self.devices and not self.devices[dev]["can_target"]: show_target = False - show_power = show_target and self._show_heater_power and power is not None + show_power = show_target and self._show_heater_power and power new_label_text = f"{temp:.0f}" if show_target: new_label_text += f"/{target:.0f}" if dev not in self.devices: new_label_text += "°" - if show_power and power: + if show_power: if lines == 2: # The label should wrap, but it doesn't work # this is a workaround