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
f44099d2
Commit
f44099d2
authored
May 25, 2015
by
MagoKimbra
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix G29
parent
badeaf3d
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
7 deletions
+13
-7
Marlin_main.cpp
MarlinKimbra/Marlin_main.cpp
+12
-6
sanitycheck.h
MarlinKimbra/sanitycheck.h
+1
-1
No files found.
MarlinKimbra/Marlin_main.cpp
View file @
f44099d2
...
@@ -3225,6 +3225,12 @@ inline void gcode_G28(boolean home_x = false, boolean home_y = false) {
...
@@ -3225,6 +3225,12 @@ inline void gcode_G28(boolean home_x = false, boolean home_y = false) {
#ifdef ENABLE_AUTO_BED_LEVELING
#ifdef ENABLE_AUTO_BED_LEVELING
void
out_of_range_error
(
const
char
*
edge
)
{
char
msg
[
40
];
sprintf_P
(
msg
,
PSTR
(
"?Probe %s position out of range.
\n
"
),
edge
);
ECHO_V
(
msg
);
}
/**
/**
* G29: Detailed Z-Probe, probes the bed at 3 or more points.
* G29: Detailed Z-Probe, probes the bed at 3 or more points.
* Will fail if the printer has not been homed with G28.
* Will fail if the printer has not been homed with G28.
...
@@ -3312,19 +3318,19 @@ inline void gcode_G28(boolean home_x = false, boolean home_y = false) {
...
@@ -3312,19 +3318,19 @@ inline void gcode_G28(boolean home_x = false, boolean home_y = false) {
if
(
left_out
||
right_out
||
front_out
||
back_out
)
{
if
(
left_out
||
right_out
||
front_out
||
back_out
)
{
if
(
left_out
)
{
if
(
left_out
)
{
ECHO_LM
(
ER
,
"?Probe (L)eft position out of range.
\n
"
);
out_of_range_error
(
PSTR
(
"(L)eft"
)
);
left_probe_bed_position
=
left_out_l
?
MIN_PROBE_X
:
right_probe_bed_position
-
MIN_PROBE_EDGE
;
left_probe_bed_position
=
left_out_l
?
MIN_PROBE_X
:
right_probe_bed_position
-
MIN_PROBE_EDGE
;
}
}
if
(
right_out
)
{
if
(
right_out
)
{
ECHO_LM
(
ER
,
"?Probe (R)ight position out of range.
\n
"
);
out_of_range_error
(
PSTR
(
"(R)ight"
)
);
right_probe_bed_position
=
right_out_r
?
MAX_PROBE_X
:
left_probe_bed_position
+
MIN_PROBE_EDGE
;
right_probe_bed_position
=
right_out_r
?
MAX_PROBE_X
:
left_probe_bed_position
+
MIN_PROBE_EDGE
;
}
}
if
(
front_out
)
{
if
(
front_out
)
{
ECHO_LM
(
ER
,
"?Probe (F)ront position out of range.
\n
"
);
out_of_range_error
(
PSTR
(
"(F)ront"
)
);
front_probe_bed_position
=
front_out_f
?
MIN_PROBE_Y
:
back_probe_bed_position
-
MIN_PROBE_EDGE
;
front_probe_bed_position
=
front_out_f
?
MIN_PROBE_Y
:
back_probe_bed_position
-
MIN_PROBE_EDGE
;
}
}
if
(
back_out
)
{
if
(
back_out
)
{
ECHO_LM
(
ER
,
"?Probe (B)ack position out of range.
\n
"
);
out_of_range_error
(
PSTR
(
"(B)ack"
)
);
back_probe_bed_position
=
back_out_b
?
MAX_PROBE_Y
:
front_probe_bed_position
+
MIN_PROBE_EDGE
;
back_probe_bed_position
=
back_out_b
?
MAX_PROBE_Y
:
front_probe_bed_position
+
MIN_PROBE_EDGE
;
}
}
return
;
return
;
...
@@ -4075,7 +4081,7 @@ inline void gcode_M42() {
...
@@ -4075,7 +4081,7 @@ inline void gcode_M42() {
if
(
code_seen
(
'X'
)
||
code_seen
(
'x'
))
{
if
(
code_seen
(
'X'
)
||
code_seen
(
'x'
))
{
X_probe_location
=
code_value
()
-
X_PROBE_OFFSET_FROM_EXTRUDER
;
X_probe_location
=
code_value
()
-
X_PROBE_OFFSET_FROM_EXTRUDER
;
if
(
X_probe_location
<
X_MIN_POS
||
X_probe_location
>
X_MAX_POS
)
{
if
(
X_probe_location
<
X_MIN_POS
||
X_probe_location
>
X_MAX_POS
)
{
ECHO_LM
(
ER
,
"?X position out of range."
);
out_of_range_error
(
PSTR
(
"X"
)
);
return
;
return
;
}
}
}
}
...
@@ -4083,7 +4089,7 @@ inline void gcode_M42() {
...
@@ -4083,7 +4089,7 @@ inline void gcode_M42() {
if
(
code_seen
(
'Y'
)
||
code_seen
(
'y'
))
{
if
(
code_seen
(
'Y'
)
||
code_seen
(
'y'
))
{
Y_probe_location
=
code_value
()
-
Y_PROBE_OFFSET_FROM_EXTRUDER
;
Y_probe_location
=
code_value
()
-
Y_PROBE_OFFSET_FROM_EXTRUDER
;
if
(
Y_probe_location
<
Y_MIN_POS
||
Y_probe_location
>
Y_MAX_POS
)
{
if
(
Y_probe_location
<
Y_MIN_POS
||
Y_probe_location
>
Y_MAX_POS
)
{
ECHO_LM
(
ER
,
"?Y position out of range."
);
out_of_range_error
(
PSTR
(
"Y"
)
);
return
;
return
;
}
}
}
}
...
...
MarlinKimbra/sanitycheck.h
View file @
f44099d2
...
@@ -236,7 +236,7 @@
...
@@ -236,7 +236,7 @@
*/
*/
#if defined(DELTA) && defined(Z_PROBE_ENDSTOP)
#if defined(DELTA) && defined(Z_PROBE_ENDSTOP)
#ifndef Z_PROBE_PIN
#ifndef Z_PROBE_PIN
#error You must have a Z_PROBE_PIN defined in your pins
_XXXX
.h file if you enable Z_PROBE_ENDSTOP
#error You must have a Z_PROBE_PIN defined in your pins
2tool
.h file if you enable Z_PROBE_ENDSTOP
#endif
#endif
#if Z_PROBE_PIN == -1
#if Z_PROBE_PIN == -1
#error You must set Z_PROBE_PIN to a valid pin if you enable Z_PROBE_ENDSTOP
#error You must set Z_PROBE_PIN to a valid pin if you enable Z_PROBE_ENDSTOP
...
...
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