From 0547d9d651fe2de6da68c2b9425f5211e5b67cfc Mon Sep 17 00:00:00 2001
From: ellensp <ellensp@hotmail.com>
Date: Mon, 20 Jan 2020 17:24:13 +1300
Subject: [PATCH] Reset shutdown timer on M85 (#16587)

---
 Marlin/src/gcode/control/M85.cpp | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/Marlin/src/gcode/control/M85.cpp b/Marlin/src/gcode/control/M85.cpp
index 5bb2f356d1..403c0c59ac 100644
--- a/Marlin/src/gcode/control/M85.cpp
+++ b/Marlin/src/gcode/control/M85.cpp
@@ -28,6 +28,9 @@
  */
 void GcodeSuite::M85() {
 
-  if (parser.seen('S')) max_inactive_time = parser.value_millis_from_seconds();
+  if (parser.seen('S')) {
+    reset_stepper_timeout();
+    max_inactive_time = parser.value_millis_from_seconds();
+  }
 
 }