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
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Jonas Leder
marlin-anet-a8
Commits
e2a89616
Commit
e2a89616
authored
Jun 5, 2016
by
Scott Lahteine
Browse files
Options
Downloads
Patches
Plain Diff
Use e_steps[EXTRUDERS] instead of e_steps[4]
parent
43947072
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
Marlin/stepper.cpp
+2
-2
2 additions, 2 deletions
Marlin/stepper.cpp
Marlin/stepper.h
+1
-1
1 addition, 1 deletion
Marlin/stepper.h
with
3 additions
and
3 deletions
Marlin/stepper.cpp
+
2
−
2
View file @
e2a89616
...
@@ -93,7 +93,7 @@ volatile unsigned long Stepper::step_events_completed = 0; // The number of step
...
@@ -93,7 +93,7 @@ volatile unsigned long Stepper::step_events_completed = 0; // The number of step
unsigned
char
Stepper
::
old_OCR0A
;
unsigned
char
Stepper
::
old_OCR0A
;
long
Stepper
::
final_advance
=
0
,
long
Stepper
::
final_advance
=
0
,
Stepper
::
old_advance
=
0
,
Stepper
::
old_advance
=
0
,
Stepper
::
e_steps
[
4
],
Stepper
::
e_steps
[
EXTRUDERS
],
Stepper
::
advance_rate
,
Stepper
::
advance_rate
,
Stepper
::
advance
;
Stepper
::
advance
;
#endif
#endif
...
@@ -661,7 +661,7 @@ void Stepper::init() {
...
@@ -661,7 +661,7 @@ void Stepper::init() {
CBI
(
TCCR0A
,
WGM01
);
CBI
(
TCCR0A
,
WGM01
);
CBI
(
TCCR0A
,
WGM00
);
CBI
(
TCCR0A
,
WGM00
);
#endif
#endif
e_steps
[
0
]
=
e_steps
[
1
]
=
e_steps
[
2
]
=
e_steps
[
3
]
=
0
;
for
(
uint8_t
i
=
0
;
i
<
EXTRUDERS
;
i
++
)
e_steps
[
i
]
=
0
;
SBI
(
TIMSK0
,
OCIE0A
);
SBI
(
TIMSK0
,
OCIE0A
);
#endif //ADVANCE
#endif //ADVANCE
...
...
This diff is collapsed.
Click to expand it.
Marlin/stepper.h
+
1
−
1
View file @
e2a89616
...
@@ -91,7 +91,7 @@ class Stepper {
...
@@ -91,7 +91,7 @@ class Stepper {
#endif
#endif
#if ENABLED(ADVANCE)
#if ENABLED(ADVANCE)
static
long
e_steps
[
4
];
static
long
e_steps
[
EXTRUDERS
];
#endif
#endif
private:
private:
...
...
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