mirror of
https://github.com/MarlinFirmware/Marlin.git
synced 2025-08-07 14:03:56 -06:00
🩹 Replace pow() with _BV() (#25186)
This commit is contained in:
parent
10b16416ee
commit
0374445488
1 changed files with 1 additions and 1 deletions
|
@ -169,7 +169,7 @@
|
|||
if (parser.seen("EPS")) {
|
||||
planner.synchronize();
|
||||
if (parser.seenval('P')) duplication_e_mask = parser.value_int(); // Set the mask directly
|
||||
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
|
||||
ena = (2 == parser.intval('S', extruder_duplication_enabled ? 2 : 0));
|
||||
set_duplication_enabled(ena && (duplication_e_mask >= 3));
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue