Skip to main content
Homepage
Explore
Search or go to…
/
Register
Sign in
Explore
Primary navigation
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
?
Collapse sidebar
Snippets
Groups
Projects
Show more breadcrumbs
Jonas Leder
marlin-anet-a8
Commits
a5c6d3c7
Commit
a5c6d3c7
authored
Mar 20, 2018
by
Scott Lahteine
Browse files
Options
Downloads
Patches
Plain Diff
Prevent null pointer crash in Endstops::update
Thanks to Evgeny Kotsuba!
parent
53362b81
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/endstops.cpp
+94
-90
94 additions, 90 deletions
Marlin/src/module/endstops.cpp
with
94 additions
and
90 deletions
Marlin/src/module/endstops.cpp
+
94
−
90
View file @
a5c6d3c7
...
@@ -448,6 +448,8 @@ void Endstops::update() {
...
@@ -448,6 +448,8 @@ void Endstops::update() {
/**
/**
* Check and update endstops according to conditions
* Check and update endstops according to conditions
*/
*/
if
(
stepper
.
current_block
)
{
if
(
X_MOVE_TEST
)
{
if
(
X_MOVE_TEST
)
{
if
(
stepper
.
motor_direction
(
X_AXIS_HEAD
))
{
// -direction
if
(
stepper
.
motor_direction
(
X_AXIS_HEAD
))
{
// -direction
#if HAS_X_MIN
#if HAS_X_MIN
...
@@ -562,6 +564,8 @@ void Endstops::update() {
...
@@ -562,6 +564,8 @@ void Endstops::update() {
}
}
}
}
}
// stepper.current_block
old_endstop_bits
=
current_endstop_bits
;
old_endstop_bits
=
current_endstop_bits
;
}
// Endstops::update()
}
// Endstops::update()
...
...
...
...
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