From c44b9c1c2812d3d0269440c6934ec4fd895de9eb Mon Sep 17 00:00:00 2001 From: narno2202 <130909513+narno2202@users.noreply.github.com> Date: Sun, 19 Oct 2025 00:20:26 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20Fix=20PLR=20with=20FT=5FMOTION?= =?UTF-8?q?=20(#28116)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Fixes #28102 --- Marlin/src/module/ft_motion.cpp | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/Marlin/src/module/ft_motion.cpp b/Marlin/src/module/ft_motion.cpp index d3ecd76630..5b2db32626 100644 --- a/Marlin/src/module/ft_motion.cpp +++ b/Marlin/src/module/ft_motion.cpp @@ -31,6 +31,10 @@ #include "stepper.h" // Access stepper block queue function and abort status. #include "endstops.h" +#if ENABLED(POWER_LOSS_RECOVERY) + #include "../feature/powerloss.h" +#endif + FTMotion ftMotion; //----------------------------------------------------------------- @@ -170,6 +174,12 @@ void FTMotion::loop() { continue; } loadBlockData(stepper.current_block); + + #if ENABLED(POWER_LOSS_RECOVERY) + recovery.info.sdpos = stepper.current_block->sdpos; + recovery.info.current_position = stepper.current_block->start_position; + #endif + blockProcRdy = true; // Some kinematics track axis motion in HX, HY, HZ