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
Sep 11, 2015
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() {
...
@@ -1356,8 +1356,8 @@ static void clean_up_after_endstop_move() {
#endif
#endif
feedrate
=
saved_feedrate
;
feedrate
=
saved_feedrate
;
feedrate_multiplier
=
saved_feedrate_multiplier
;
feedrate_multiplier
=
saved_feedrate_multiplier
;
endstops_hit_on_purpose
();
// clear endstop hit flags
refresh_cmd_timeout
();
refresh_cmd_timeout
();
endstops_hit_on_purpose
();
// clear endstop hit flags
}
}
#if MECH(CARTESIAN) || MECH(COREXY) || MECH(COREXZ) || MECH(SCARA)
#if MECH(CARTESIAN) || MECH(COREXY) || MECH(COREXZ) || MECH(SCARA)
...
@@ -3162,7 +3162,7 @@ inline void gcode_G28() {
...
@@ -3162,7 +3162,7 @@ inline void gcode_G28() {
print_xyz
(
"> HOMEAXIS(Z) > current_position"
,
current_position
);
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
// Raise Z before homing any other axes
destination
[
Z_AXIS
]
=
-
Z_RAISE_BEFORE_HOMING
*
home_dir
(
Z_AXIS
);
// Set destination away from bed
destination
[
Z_AXIS
]
=
-
Z_RAISE_BEFORE_HOMING
*
home_dir
(
Z_AXIS
);
// Set destination away from bed
...
@@ -3439,12 +3439,12 @@ inline void gcode_G28() {
...
@@ -3439,12 +3439,12 @@ inline void gcode_G28() {
}
}
else
{
else
{
LCD_MESSAGEPGM
(
MSG_ZPROBE_OUT
);
LCD_MESSAGEPGM
(
MSG_ZPROBE_OUT
);
ECHO_LM
(
ER
,
MSG_ZPROBE_OUT
);
ECHO_LM
(
DB
,
MSG_ZPROBE_OUT
);
}
}
}
}
else
{
else
{
LCD_MESSAGEPGM
(
MSG_POSITION_UNKNOWN
);
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"
);
if
(
debugLevel
&
DEBUG_INFO
)
ECHO_LM
(
DB
,
"<<< Z_SAFE_HOMING"
);
...
@@ -3494,7 +3494,7 @@ inline void gcode_G28() {
...
@@ -3494,7 +3494,7 @@ inline void gcode_G28() {
#endif
#endif
clean_up_after_endstop_move
();
clean_up_after_endstop_move
();
if
(
come_back
)
{
if
(
come_back
)
{
#if MECH(DELTA)
#if MECH(DELTA)
feedrate
=
1.732
*
homing_feedrate
[
X_AXIS
];
feedrate
=
1.732
*
homing_feedrate
[
X_AXIS
];
...
@@ -3520,6 +3520,8 @@ inline void gcode_G28() {
...
@@ -3520,6 +3520,8 @@ inline void gcode_G28() {
feedrate
=
oldfeedrate
;
feedrate
=
oldfeedrate
;
#endif
#endif
}
}
if
(
debugLevel
&
DEBUG_INFO
)
ECHO_LM
(
DB
,
"<<< gcode_G28"
);
}
}
#if ENABLED(AUTO_BED_LEVELING_FEATURE)
#if ENABLED(AUTO_BED_LEVELING_FEATURE)
...
...
MarlinKimbra/stepper.cpp
View file @
ac59d802
...
@@ -767,6 +767,8 @@ ISR(TIMER1_COMPA_vect) {
...
@@ -767,6 +767,8 @@ ISR(TIMER1_COMPA_vect) {
step_loops
=
step_loops_nominal
;
step_loops
=
step_loops_nominal
;
}
}
OCR1A
=
(
OCR1A
<
(
TCNT1
+
16
))
?
(
TCNT1
+
16
)
:
OCR1A
;
// If current block is finished, reset pointer
// If current block is finished, reset pointer
if
(
step_events_completed
>=
current_block
->
step_event_count
)
{
if
(
step_events_completed
>=
current_block
->
step_event_count
)
{
current_block
=
NULL
;
current_block
=
NULL
;
...
...
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