Skip to content

Commit 0f6fe29

Browse files
ellenspTracy Spiva
authored and
Tracy Spiva
committed
🩹 Replace pow() with _BV() (MarlinFirmware#25186)
1 parent 003e7c3 commit 0f6fe29

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Marlin/src/gcode/control/M605.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,7 @@
176176
if (parser.seen("EPS")) {
177177
planner.synchronize();
178178
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
179+
else if (parser.seenval('E')) duplication_e_mask = _BV(parser.value_int() + 1) - 1; // Set the mask by E index
180180
ena = (2 == parser.intval('S', extruder_duplication_enabled ? 2 : 0));
181181
set_duplication_enabled(ena && (duplication_e_mask >= 3));
182182
}

0 commit comments

Comments
 (0)