aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--docs/Status_Reference.md2
-rw-r--r--klippy/extras/screws_tilt_adjust.py1
2 files changed, 3 insertions, 0 deletions
diff --git a/docs/Status_Reference.md b/docs/Status_Reference.md
index bff64d18..48aeb0fd 100644
--- a/docs/Status_Reference.md
+++ b/docs/Status_Reference.md
@@ -386,6 +386,8 @@ object:
- `error`: Returns True if the most recent `SCREWS_TILT_CALCULATE`
command included the `MAX_DEVIATION` parameter and any of the probed
screw points exceeded the specified `MAX_DEVIATION`.
+- `max_deviation`: Return the last `MAX_DEVIATION` value of the most
+ recent `SCREWS_TILT_CALCULATE` command.
- `results["<screw>"]`: A dictionary containing the following keys:
- `z`: The measured Z height of the screw location.
- `sign`: A string specifying the direction to turn to screw for the
diff --git a/klippy/extras/screws_tilt_adjust.py b/klippy/extras/screws_tilt_adjust.py
index 423c4a09..521744af 100644
--- a/klippy/extras/screws_tilt_adjust.py
+++ b/klippy/extras/screws_tilt_adjust.py
@@ -61,6 +61,7 @@ class ScrewsTiltAdjust:
def get_status(self, eventtime):
return {'error': self.max_diff_error,
+ 'max_deviation': self.max_diff,
'results': self.results}
def probe_finalize(self, offsets, positions):