Skip to content

Commit

Permalink
Follow up to "Fix step oversampling with NONLINEAR_EXTRUSION (MarlinF…
Browse files Browse the repository at this point in the history
…irmware#27171)": do not demand ADAPTIVE_STEP_SMOOTHING for NONLINEAR_EXTRUSION, restore original comment.
  • Loading branch information
vovodroid committed Jun 14, 2024
1 parent 611ceed commit e2540f6
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 5 deletions.
1 change: 1 addition & 0 deletions Marlin/Configuration_adv.h
Original file line number Diff line number Diff line change
Expand Up @@ -2329,6 +2329,7 @@
*
* Control extrusion rate based on instantaneous extruder velocity. Can be used to correct for
* underextrusion at high extruder speeds that are otherwise well-behaved (i.e., not skipping).
* For better results also enable ADAPTIVE_STEP_SMOOTHING.
*/
//#define NONLINEAR_EXTRUSION

Expand Down
4 changes: 1 addition & 3 deletions Marlin/src/inc/SanityCheck.h
Original file line number Diff line number Diff line change
Expand Up @@ -837,9 +837,7 @@ static_assert(COUNT(arm) == LOGICAL_AXES, "AXIS_RELATIVE_MODES must contain " _L
* Nonlinear Extrusion requirements
*/
#if ENABLED(NONLINEAR_EXTRUSION)
#if DISABLED(ADAPTIVE_STEP_SMOOTHING)
#error "ADAPTIVE_STEP_SMOOTHING is required for NONLINEAR_EXTRUSION."
#elif HAS_MULTI_EXTRUDER
#if HAS_MULTI_EXTRUDER
#error "NONLINEAR_EXTRUSION doesn't currently support multi-extruder setups."
#elif DISABLED(CPU_32_BIT)
#error "NONLINEAR_EXTRUSION requires a 32-bit CPU."
Expand Down
3 changes: 1 addition & 2 deletions Marlin/src/module/stepper.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2694,8 +2694,7 @@ hal_timer_t Stepper::block_phase_isr() {
set_axis_moved_for_current_block();

#if ENABLED(ADAPTIVE_STEP_SMOOTHING)
oversampling_factor = 0;

oversampling_factor = 0; // Assume no axis smoothing (via oversampling)
// Decide if axis smoothing is possible
if (stepper.adaptive_step_smoothing_enabled) {
uint32_t max_rate = current_block->nominal_rate; // Get the step event rate
Expand Down

0 comments on commit e2540f6

Please sign in to comment.