From 1367414e365f3901c61f0bd189cbcca8cb8d7430 Mon Sep 17 00:00:00 2001 From: ahiuchingau <20424172+ahiuchingau@users.noreply.github.com> Date: Fri, 22 Nov 2024 15:04:59 -0500 Subject: [PATCH] fix bugs found during evt script testing --- .../include/flex-stacker/flex-stacker/gcodes_motor.hpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/stm32-modules/include/flex-stacker/flex-stacker/gcodes_motor.hpp b/stm32-modules/include/flex-stacker/flex-stacker/gcodes_motor.hpp index 5ba2bfc41..d9881f1ab 100644 --- a/stm32-modules/include/flex-stacker/flex-stacker/gcodes_motor.hpp +++ b/stm32-modules/include/flex-stacker/flex-stacker/gcodes_motor.hpp @@ -592,8 +592,6 @@ struct MoveToLimitSwitch { if (std::get<3>(arguments).present) { ret.mm_per_second = std::get<3>(arguments).value; - } else { - return std::make_pair(ParseResult(), input); } if (std::get<4>(arguments).present) { @@ -998,7 +996,7 @@ struct GetEstopStatus { static auto write_response_into(InputIt buf, InLimit limit, int triggered) -> InputIt { int res = 0; - res = snprintf(&*buf, (limit - buf), "M112 %i OK", triggered); + res = snprintf(&*buf, (limit - buf), "M112 %i OK\n", triggered); if (res <= 0) { return buf; }