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
49627069
Commit
49627069
authored
5 years ago
by
Scott Lahteine
Browse files
Options
Downloads
Patches
Plain Diff
Shorthand for home-after-deactivate
parent
30a3db4f
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
Marlin/src/gcode/calibrate/G28.cpp
+3
-11
3 additions, 11 deletions
Marlin/src/gcode/calibrate/G28.cpp
Marlin/src/module/motion.h
+10
-0
10 additions, 0 deletions
Marlin/src/module/motion.h
with
13 additions
and
11 deletions
Marlin/src/gcode/calibrate/G28.cpp
+
3
−
11
View file @
49627069
...
...
@@ -200,17 +200,9 @@ void GcodeSuite::G28(const bool always_home_all) {
}
#endif
if
(
parser
.
boolval
(
'O'
))
{
if
(
#if ENABLED(HOME_AFTER_DEACTIVATE)
all_axes_known
()
// homing needed anytime steppers deactivate
#else
all_axes_homed
()
// homing needed only if never homed
#endif
)
{
if
(
DEBUGGING
(
LEVELING
))
DEBUG_ECHOLNPGM
(
"> homing not needed, skip
\n
<<< G28"
);
return
;
}
if
(
!
homing_needed
()
&&
parser
.
boolval
(
'O'
))
{
if
(
DEBUGGING
(
LEVELING
))
DEBUG_ECHOLNPGM
(
"> homing not needed, skip
\n
<<< G28"
);
return
;
}
// Wait for planner moves to finish!
...
...
This diff is collapsed.
Click to expand it.
Marlin/src/module/motion.h
+
10
−
0
View file @
49627069
...
...
@@ -42,6 +42,16 @@ FORCE_INLINE bool all_axes_known() { return (axis_known_position & xyz_bits) ==
FORCE_INLINE
void
set_all_unhomed
()
{
axis_homed
=
0
;
}
FORCE_INLINE
void
set_all_unknown
()
{
axis_known_position
=
0
;
}
FORCE_INLINE
bool
homing_needed
()
{
return
!
(
#if ENABLED(HOME_AFTER_DEACTIVATE)
all_axes_known
()
#else
all_axes_homed
()
#endif
);
}
// Error margin to work around float imprecision
constexpr
float
slop
=
0.0001
;
...
...
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