From 04952db1e8806a5efe27771d568ce66e9eb126f9 Mon Sep 17 00:00:00 2001 From: Troy Jacobson Date: Tue, 1 Mar 2022 07:53:40 -0700 Subject: [PATCH] tuning_tower: add is_active() method Signed-off-by: Troy Jacobson Co-authored-by: Franklyn Tackitt --- klippy/extras/tuning_tower.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/klippy/extras/tuning_tower.py b/klippy/extras/tuning_tower.py index 493db2c8..4fec5b1b 100644 --- a/klippy/extras/tuning_tower.py +++ b/klippy/extras/tuning_tower.py @@ -99,6 +99,8 @@ class TuningTower: self.gcode.respond_info("Ending tuning test mode") self.gcode_move.set_move_transform(self.normal_transform, force=True) self.normal_transform = None + def is_active(self): + return self.normal_transform is not None def load_config(config): return TuningTower(config)