Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
M
MarlinKimbra
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
machinery
MarlinKimbra
Commits
ac59d802
Commit
ac59d802
authored
9 years ago
by
MagoKimbra
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix G28
parent
075af738
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
5 deletions
+9
-5
Marlin_main.cpp
MarlinKimbra/Marlin_main.cpp
+7
-5
stepper.cpp
MarlinKimbra/stepper.cpp
+2
-0
No files found.
MarlinKimbra/Marlin_main.cpp
View file @
ac59d802
...
...
@@ -1356,8 +1356,8 @@ static void clean_up_after_endstop_move() {
#endif
feedrate
=
saved_feedrate
;
feedrate_multiplier
=
saved_feedrate_multiplier
;
endstops_hit_on_purpose
();
// clear endstop hit flags
refresh_cmd_timeout
();
endstops_hit_on_purpose
();
// clear endstop hit flags
}
#if MECH(CARTESIAN) || MECH(COREXY) || MECH(COREXZ) || MECH(SCARA)
...
...
@@ -3162,7 +3162,7 @@ inline void gcode_G28() {
print_xyz
(
"> HOMEAXIS(Z) > current_position"
,
current_position
);
}
#elif DISABLED(Z_SAFE_HOMING) && ENABLED(
Z_RAISE_BEFORE_HOMING
) && Z_RAISE_BEFORE_HOMING > 0
#elif DISABLED(Z_SAFE_HOMING) && ENABLED(
AUTO_BED_LEVELING_FEATURE
) && Z_RAISE_BEFORE_HOMING > 0
// Raise Z before homing any other axes
destination
[
Z_AXIS
]
=
-
Z_RAISE_BEFORE_HOMING
*
home_dir
(
Z_AXIS
);
// Set destination away from bed
...
...
@@ -3439,12 +3439,12 @@ inline void gcode_G28() {
}
else
{
LCD_MESSAGEPGM
(
MSG_ZPROBE_OUT
);
ECHO_LM
(
ER
,
MSG_ZPROBE_OUT
);
ECHO_LM
(
DB
,
MSG_ZPROBE_OUT
);
}
}
else
{
LCD_MESSAGEPGM
(
MSG_POSITION_UNKNOWN
);
ECHO_LM
(
ER
,
MSG_POSITION_UNKNOWN
);
ECHO_LM
(
DB
,
MSG_POSITION_UNKNOWN
);
}
}
if
(
debugLevel
&
DEBUG_INFO
)
ECHO_LM
(
DB
,
"<<< Z_SAFE_HOMING"
);
...
...
@@ -3494,7 +3494,7 @@ inline void gcode_G28() {
#endif
clean_up_after_endstop_move
();
if
(
come_back
)
{
#if MECH(DELTA)
feedrate
=
1.732
*
homing_feedrate
[
X_AXIS
];
...
...
@@ -3520,6 +3520,8 @@ inline void gcode_G28() {
feedrate
=
oldfeedrate
;
#endif
}
if
(
debugLevel
&
DEBUG_INFO
)
ECHO_LM
(
DB
,
"<<< gcode_G28"
);
}
#if ENABLED(AUTO_BED_LEVELING_FEATURE)
...
...
This diff is collapsed.
Click to expand it.
MarlinKimbra/stepper.cpp
View file @
ac59d802
...
...
@@ -767,6 +767,8 @@ ISR(TIMER1_COMPA_vect) {
step_loops
=
step_loops_nominal
;
}
OCR1A
=
(
OCR1A
<
(
TCNT1
+
16
))
?
(
TCNT1
+
16
)
:
OCR1A
;
// If current block is finished, reset pointer
if
(
step_events_completed
>=
current_block
->
step_event_count
)
{
current_block
=
NULL
;
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment