Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
M
marlin-anet-a8
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Jonas Leder
marlin-anet-a8
Commits
7e8c073f
Commit
7e8c073f
authored
6 years ago
by
Sebastianv650
Committed by
Scott Lahteine
6 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Fix extruder stops extruding with LA (#11758)
parent
0c01099f
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
Marlin/src/module/stepper.cpp
+11
-17
11 additions, 17 deletions
Marlin/src/module/stepper.cpp
with
11 additions
and
17 deletions
Marlin/src/module/stepper.cpp
+
11
−
17
View file @
7e8c073f
...
...
@@ -1485,16 +1485,10 @@ uint32_t Stepper::stepper_block_phase_isr() {
#if ENABLED(LIN_ADVANCE)
if
(
LA_use_advance_lead
)
{
// Wake up eISR on first acceleration loop and fire ISR if final adv_rate is reached
if
(
step_events_completed
==
steps_per_isr
||
(
LA_steps
&&
LA_isr_rate
!=
current_block
->
advance_speed
))
{
nextAdvanceISR
=
0
;
LA_isr_rate
=
current_block
->
advance_speed
;
}
}
else
{
LA_isr_rate
=
LA_ADV_NEVER
;
if
(
LA_steps
)
nextAdvanceISR
=
0
;
// Fire ISR if final adv_rate is reached
if
(
LA_steps
&&
LA_isr_rate
!=
current_block
->
advance_speed
)
nextAdvanceISR
=
0
;
}
else
if
(
LA_steps
)
nextAdvanceISR
=
0
;
#endif // LIN_ADVANCE
}
// Are we in Deceleration phase ?
...
...
@@ -1536,17 +1530,13 @@ uint32_t Stepper::stepper_block_phase_isr() {
#if ENABLED(LIN_ADVANCE)
if
(
LA_use_advance_lead
)
{
if
(
step_events_completed
<=
decelerate_after
+
steps_per_isr
||
(
LA_steps
&&
LA_isr_rate
!=
current_block
->
advance_speed
)
)
{
nextAdvanceISR
=
0
;
// Wake up eISR on first deceleration loop
// Wake up eISR on first deceleration loop and fire ISR if final adv_rate is reached
if
(
step_events_completed
<=
decelerate_after
+
steps_per_isr
||
(
LA_steps
&&
LA_isr_rate
!=
current_block
->
advance_speed
))
{
nextAdvanceISR
=
0
;
LA_isr_rate
=
current_block
->
advance_speed
;
}
}
else
{
LA_isr_rate
=
LA_ADV_NEVER
;
if
(
LA_steps
)
nextAdvanceISR
=
0
;
}
else
if
(
LA_steps
)
nextAdvanceISR
=
0
;
#endif // LIN_ADVANCE
}
// We must be in cruise phase otherwise
...
...
@@ -1726,7 +1716,11 @@ uint32_t Stepper::stepper_block_phase_isr() {
if
((
LA_use_advance_lead
=
current_block
->
use_advance_lead
))
{
LA_final_adv_steps
=
current_block
->
final_adv_steps
;
LA_max_adv_steps
=
current_block
->
max_adv_steps
;
//Start the ISR
nextAdvanceISR
=
0
;
LA_isr_rate
=
current_block
->
advance_speed
;
}
else
LA_isr_rate
=
LA_ADV_NEVER
;
#endif
if
(
current_block
->
direction_bits
!=
last_direction_bits
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment