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 744302963..3bbd97c8a 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) { @@ -996,7 +994,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; }