Skip to content

Commit 1367414

Browse files
committed
fix bugs found during evt script testing
1 parent 393bae8 commit 1367414

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

stm32-modules/include/flex-stacker/flex-stacker/gcodes_motor.hpp

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -592,8 +592,6 @@ struct MoveToLimitSwitch {
592592

593593
if (std::get<3>(arguments).present) {
594594
ret.mm_per_second = std::get<3>(arguments).value;
595-
} else {
596-
return std::make_pair(ParseResult(), input);
597595
}
598596

599597
if (std::get<4>(arguments).present) {
@@ -998,7 +996,7 @@ struct GetEstopStatus {
998996
static auto write_response_into(InputIt buf, InLimit limit, int triggered)
999997
-> InputIt {
1000998
int res = 0;
1001-
res = snprintf(&*buf, (limit - buf), "M112 %i OK", triggered);
999+
res = snprintf(&*buf, (limit - buf), "M112 %i OK\n", triggered);
10021000
if (res <= 0) {
10031001
return buf;
10041002
}

0 commit comments

Comments
 (0)