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
89e5ebb4
Commit
89e5ebb4
authored
May 17, 2015
by
MagoKimbra
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Same fix
parent
c74806df
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
8 deletions
+11
-8
Marlin_main.cpp
MarlinKimbra/Marlin_main.cpp
+11
-8
No files found.
MarlinKimbra/Marlin_main.cpp
View file @
89e5ebb4
...
@@ -2427,7 +2427,7 @@ static void setup_for_endstop_move() {
...
@@ -2427,7 +2427,7 @@ static void setup_for_endstop_move() {
if
(
retract_zlift
>
0.01
)
{
if
(
retract_zlift
>
0.01
)
{
current_position
[
Z_AXIS
]
-=
retract_zlift
;
current_position
[
Z_AXIS
]
-=
retract_zlift
;
#if
def DELTA
#if
defined(DELTA) || defined(SCARA)
sync_plan_position_delta
();
sync_plan_position_delta
();
#else
#else
sync_plan_position
();
sync_plan_position
();
...
@@ -2439,7 +2439,7 @@ static void setup_for_endstop_move() {
...
@@ -2439,7 +2439,7 @@ static void setup_for_endstop_move() {
if
(
retract_zlift
>
0.01
)
{
if
(
retract_zlift
>
0.01
)
{
current_position
[
Z_AXIS
]
+=
retract_zlift
;
current_position
[
Z_AXIS
]
+=
retract_zlift
;
#if
def DELTA
#if
defined(DELTA) || defined(SCARA)
sync_plan_position_delta
();
sync_plan_position_delta
();
#else
#else
sync_plan_position
();
sync_plan_position
();
...
@@ -3192,7 +3192,7 @@ inline void gcode_G28(boolean home_x = false, boolean home_y = false) {
...
@@ -3192,7 +3192,7 @@ inline void gcode_G28(boolean home_x = false, boolean home_y = false) {
sync_plan_position
();
sync_plan_position
();
#endif //
else
DELTA
#endif //
!
DELTA
#ifdef SCARA
#ifdef SCARA
sync_plan_position_delta
();
sync_plan_position_delta
();
...
@@ -5455,7 +5455,11 @@ inline void gcode_M428() {
...
@@ -5455,7 +5455,11 @@ inline void gcode_M428() {
if
(
!
err
)
{
if
(
!
err
)
{
memcpy
(
current_position
,
new_pos
,
sizeof
(
new_pos
));
memcpy
(
current_position
,
new_pos
,
sizeof
(
new_pos
));
memcpy
(
home_offset
,
new_offs
,
sizeof
(
new_offs
));
memcpy
(
home_offset
,
new_offs
,
sizeof
(
new_offs
));
#if defined(DELTA) || defined(SCARA)
sync_plan_position_delta
()
#else
sync_plan_position
();
sync_plan_position
();
#endif
ECHO_LM
(
DB
,
"Offset applied."
);
ECHO_LM
(
DB
,
"Offset applied."
);
LCD_ALERTMESSAGEPGM
(
"Offset applied."
);
LCD_ALERTMESSAGEPGM
(
"Offset applied."
);
#if HAS_LCD_BUZZ
#if HAS_LCD_BUZZ
...
@@ -5637,8 +5641,7 @@ inline void gcode_M503() {
...
@@ -5637,8 +5641,7 @@ inline void gcode_M503() {
plan_buffer_line
(
delta
[
X_AXIS
],
delta
[
Y_AXIS
],
delta
[
Z_AXIS
],
target
[
E_AXIS
],
feedrate
/
60
,
active_extruder
,
active_driver
);
//move xyz back
plan_buffer_line
(
delta
[
X_AXIS
],
delta
[
Y_AXIS
],
delta
[
Z_AXIS
],
target
[
E_AXIS
],
feedrate
/
60
,
active_extruder
,
active_driver
);
//move xyz back
plan_buffer_line
(
delta
[
X_AXIS
],
delta
[
Y_AXIS
],
delta
[
Z_AXIS
],
lastpos
[
E_AXIS
],
feedrate
/
60
,
active_extruder
,
active_driver
);
//final unretract
plan_buffer_line
(
delta
[
X_AXIS
],
delta
[
Y_AXIS
],
delta
[
Z_AXIS
],
lastpos
[
E_AXIS
],
feedrate
/
60
,
active_extruder
,
active_driver
);
//final unretract
for
(
int8_t
i
=
0
;
i
<
NUM_AXIS
;
i
++
)
current_position
[
i
]
=
lastpos
[
i
];
for
(
int8_t
i
=
0
;
i
<
NUM_AXIS
;
i
++
)
current_position
[
i
]
=
lastpos
[
i
];
calculate_delta
(
current_position
);
sync_plan_position_delta
();
plan_set_position
(
delta
[
X_AXIS
],
delta
[
Y_AXIS
],
delta
[
Z_AXIS
],
current_position
[
E_AXIS
]);
#else
#else
plan_buffer_line
(
lastpos
[
X_AXIS
],
lastpos
[
Y_AXIS
],
target
[
Z_AXIS
],
target
[
E_AXIS
],
feedrate
/
60
,
active_extruder
,
active_driver
);
//move xy back
plan_buffer_line
(
lastpos
[
X_AXIS
],
lastpos
[
Y_AXIS
],
target
[
Z_AXIS
],
target
[
E_AXIS
],
feedrate
/
60
,
active_extruder
,
active_driver
);
//move xy back
plan_buffer_line
(
lastpos
[
X_AXIS
],
lastpos
[
Y_AXIS
],
lastpos
[
Z_AXIS
],
target
[
E_AXIS
],
feedrate
/
60
,
active_extruder
,
active_driver
);
//move z back
plan_buffer_line
(
lastpos
[
X_AXIS
],
lastpos
[
Y_AXIS
],
lastpos
[
Z_AXIS
],
target
[
E_AXIS
],
feedrate
/
60
,
active_extruder
,
active_driver
);
//move z back
...
@@ -6092,11 +6095,11 @@ inline void gcode_T() {
...
@@ -6092,11 +6095,11 @@ inline void gcode_T() {
#endif // end MKR4 || NPR2
#endif // end MKR4 || NPR2
#endif // end no DUAL_X_CARRIAGE
#endif // end no DUAL_X_CARRIAGE
#if
def DELTA
#if
defined(DELTA) || defined(SCARA)
sync_plan_position_delta
();
sync_plan_position_delta
();
#else // NO DELTA
#else // NO DELTA
sync_plan_position
();
sync_plan_position
();
#endif // DELTA
#endif //
!
DELTA
// Move to the old position if 'F' was in the parameters
// Move to the old position if 'F' was in the parameters
if
(
make_move
&&
IsRunning
())
prepare_move
();
if
(
make_move
&&
IsRunning
())
prepare_move
();
}
}
...
...
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