We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 003e7c3 commit 0f6fe29Copy full SHA for 0f6fe29
Marlin/src/gcode/control/M605.cpp
@@ -176,7 +176,7 @@
176
if (parser.seen("EPS")) {
177
planner.synchronize();
178
if (parser.seenval('P')) duplication_e_mask = parser.value_int(); // Set the mask directly
179
- else if (parser.seenval('E')) duplication_e_mask = pow(2, parser.value_int() + 1) - 1; // Set the mask by E index
+ else if (parser.seenval('E')) duplication_e_mask = _BV(parser.value_int() + 1) - 1; // Set the mask by E index
180
ena = (2 == parser.intval('S', extruder_duplication_enabled ? 2 : 0));
181
set_duplication_enabled(ena && (duplication_e_mask >= 3));
182
}
0 commit comments