Skip to content

Commit

Permalink
Shorter code
Browse files Browse the repository at this point in the history
  • Loading branch information
gudnimg authored and DRracer committed Jan 6, 2023
1 parent 8c79bab commit f1cd388
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions Firmware/planner.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -921,12 +921,7 @@ block->steps_y.wide = labs((target[X_AXIS]-position[X_AXIS]) - (target[Y_AXIS]-p
if(block->steps_y.wide != 0) enable_y();
#endif
if(block->steps_z.wide != 0) enable_z();

// Enable extruder
if(block->steps_e.wide != 0)
{
enable_e0();
}
if(block->steps_e.wide != 0) enable_e0();

if (block->steps_e.wide == 0)
{
Expand Down

0 comments on commit f1cd388

Please sign in to comment.