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
544b1663
Commit
544b1663
authored
4 years ago
by
Scott Lahteine
Browse files
Options
Downloads
Patches
Plain Diff
Fix poll_runout_states bug
parent
a4c98146
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
Marlin/src/feature/runout.h
+2
-3
2 additions, 3 deletions
Marlin/src/feature/runout.h
with
2 additions
and
3 deletions
Marlin/src/feature/runout.h
+
2
−
3
View file @
544b1663
...
...
@@ -140,6 +140,7 @@ class FilamentSensorBase {
#define _INIT_RUNOUT(N) INIT_RUNOUT_PIN(FIL_RUNOUT##N##_PIN);
REPEAT_S
(
1
,
INCREMENT
(
NUM_RUNOUT_SENSORS
),
_INIT_RUNOUT
)
#undef _INIT_RUNOUT
#undef INIT_RUNOUT_PIN
}
// Return a bitmask of runout pin states
...
...
@@ -151,10 +152,8 @@ class FilamentSensorBase {
// Return a bitmask of runout flag states (1 bits always indicates runout)
static
inline
uint8_t
poll_runout_states
()
{
return
poll_runout_pins
()
^
uint8_t
(
TERN
0
(
FIL_RUNOUT_INVERTING
,
_BV
(
NUM_RUNOUT_SENSORS
)
-
1
));
return
poll_runout_pins
()
^
uint8_t
(
TERN
(
FIL_RUNOUT_INVERTING
,
0
,
_BV
(
NUM_RUNOUT_SENSORS
)
-
1
));
}
#undef INIT_RUNOUT_PIN
};
#if ENABLED(FILAMENT_MOTION_SENSOR)
...
...
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