From db60f8b446df9a5822452f8086990bed130dc12d Mon Sep 17 00:00:00 2001 From: Ted Hess Date: Fri, 1 Apr 2022 16:35:40 -0400 Subject: [PATCH] Ignore non-tools PINDA and Ambient temps from Prusa firmware --- octopyclient/octopyclient.py | 2 +- octopyclient/panels/temperature.py | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/octopyclient/octopyclient.py b/octopyclient/octopyclient.py index ff9a23f..379ab15 100644 --- a/octopyclient/octopyclient.py +++ b/octopyclient/octopyclient.py @@ -18,7 +18,7 @@ --noblank Disable DPMS and screen-saver blanking """ -__version__ = "1.0.1" +__version__ = "1.0.2" import sys import os diff --git a/octopyclient/panels/temperature.py b/octopyclient/panels/temperature.py index 481212b..40899c1 100644 --- a/octopyclient/panels/temperature.py +++ b/octopyclient/panels/temperature.py @@ -172,6 +172,9 @@ def updateToolData(self): self.ttempData = printer_state['temperature'] for tool in self.ttempData: + # Ignore Prusa PINDA('P') and ambient('A') temps + if tool == 'A' or tool == 'P': + continue if tool not in self.toolImages: self.addNewTool(tool) # Only update label if tool being displayed