Skip to content

Commit bfb0930

Browse files
committed
Merge remote-tracking branch 'origin-dudecc/patch-1' into CURA-12495_revert-Method-High-Speed-printing
2 parents d430b7b + 0c762e0 commit bfb0930

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

src/gcode/gcode_to_command.cpp

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -270,8 +270,11 @@ void VisitCommand::to_proto_path(const gcode::ast::G0_G1& command)
270270
{
271271
if (delta_e > 0)
272272
{
273+
// NOTE: A move may only have a single bead mode tag
273274
move->tags.emplace_back(botcmd::Tag::Restart);
274275
state.is_retracted = false;
276+
proto_path.emplace_back(move);
277+
return;
275278
}
276279
else
277280
{
@@ -283,8 +286,11 @@ void VisitCommand::to_proto_path(const gcode::ast::G0_G1& command)
283286
}
284287
else if (delta_e < 0)
285288
{
289+
// NOTE: A move may only have a single bead mode tag
286290
move->tags.emplace_back(botcmd::Tag::Retract);
287291
state.is_retracted = true;
292+
proto_path.emplace_back(move);
293+
return;
288294
}
289295
else if (delta_e == 0)
290296
{

0 commit comments

Comments
 (0)