Skip to content

Commit

Permalink
🐛 Fix ESP32 laser M4 exception (MarlinFirmware#26884)
Browse files Browse the repository at this point in the history
  • Loading branch information
HoverClub authored and thinkyhead committed Mar 27, 2024
1 parent e81b3fe commit 7616d0e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Marlin/src/module/stepper.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2333,7 +2333,8 @@ uint32_t Stepper::block_phase_isr() {
*/
if (cutter.cutter_mode == CUTTER_MODE_DYNAMIC
&& planner.laser_inline.status.isPowered // isPowered flag set on any parsed G1, G2, G3, or G5 move; cleared on any others.
&& cutter.last_block_power != current_block->laser.power // Prevent constant update without change
&& current_block // Block may not be available if steps completed (see discard_current_block() above)
&& cutter.last_block_power != current_block->laser.power // Only update if the power changed
) {
cutter.apply_power(current_block->laser.power);
cutter.last_block_power = current_block->laser.power;
Expand Down

0 comments on commit 7616d0e

Please sign in to comment.