Move inline laser state to fix EEPROM error
This commit is contained in:
@@ -2239,11 +2239,11 @@ uint32_t Stepper::block_phase_isr() {
|
||||
#if ENABLED(LASER_POWER_INLINE_CONTINUOUS)
|
||||
else { // No new block found; so apply inline laser parameters
|
||||
// This should mean ending file with 'M5 I' will stop the laser; thus the inline flag isn't needed
|
||||
const uint8_t stat = planner.settings.laser.status;
|
||||
const uint8_t stat = planner.laser.status;
|
||||
if (TEST(stat, 0)) { // Planner controls the laser
|
||||
#if ENABLED(SPINDLE_LASER_PWM)
|
||||
if (TEST(stat, 1)) // Laser is on
|
||||
cutter.set_ocr_power(planner.settings.laser.power);
|
||||
cutter.set_ocr_power(planner.laser.power);
|
||||
else
|
||||
cutter.set_power(0);
|
||||
#else
|
||||
|
Reference in New Issue
Block a user