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
4a191428
Commit
4a191428
authored
May 16, 2016
by
MagoKimbra
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix Z_SAFE
parent
294b2165
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
25 additions
and
14 deletions
+25
-14
Configuration_Basic.h
MK/Configuration_Basic.h
+6
-3
Configuration_Pins.h
MK/Configuration_Pins.h
+2
-0
MK_Main.cpp
MK/module/MK_Main.cpp
+15
-8
conditionals.h
MK/module/conditionals.h
+2
-3
No files found.
MK/Configuration_Basic.h
View file @
4a191428
...
...
@@ -55,10 +55,13 @@
// Uncomment to include more info in ok command
//#define ADVANCED_OK
// By default MarlinKimbra will send a busy status message to the host
//
// Host Keepalive
//
// When enabled MarlinKimbra will send a busy status message to the host
// every couple of seconds when it can't accept commands.
// Enable this option if your host doesn't like keepalive messages.
//#define DISABLE_HOST_KEEPALIVE
#define HOST_KEEPALIVE_FEATURE // Disable this if your host doesn't like keepalive messages
#define DEFAULT_KEEPALIVE_INTERVAL 2 // Number of seconds between "busy" messages. Set with M113.
/***********************************************************************/
...
...
MK/Configuration_Pins.h
View file @
4a191428
...
...
@@ -94,6 +94,8 @@
#define E0E1_CHOICE_PIN -1
#define E0E2_CHOICE_PIN -1
#define E0E3_CHOICE_PIN -1
#define E0E4_CHOICE_PIN -1
#define E0E5_CHOICE_PIN -1
#define E1E3_CHOICE_PIN -1
#endif
...
...
MK/module/MK_Main.cpp
View file @
4a191428
...
...
@@ -585,9 +585,11 @@ bool enqueue_and_echo_command(const char* cmd, bool say_ok/*=false*/) {
#if HAS(DONDOLO)
servo
[
DONDOLO_SERVO_INDEX
].
attach
(
0
);
servo
[
DONDOLO_SERVO_INDEX
].
write
(
DONDOLO_SERVOPOS_E0
);
#if (DONDOLO_SERVO_DELAY > 0)
delay_ms
(
DONDOLO_SERVO_DELAY
);
servo
[
DONDOLO_SERVO_INDEX
].
detach
();
#endif
#endif
// Set position of Servo Endstops that are defined
#if HAS(SERVO_ENDSTOPS)
...
...
@@ -3632,8 +3634,10 @@ inline void gcode_G28() {
#elif ENABLED(Z_SAFE_HOMING)
if
(
home_all_axis
||
homeZ
)
{
if
(
DEBUGGING
(
INFO
))
ECHO_LM
(
INFO
,
"> Z_SAFE_HOMING >>>"
);
// Let's see if X and Y are homed
if
(
axis_
was_homed
&
(
_BV
(
X_AXIS
)
|
_BV
(
Y_AXIS
))
==
(
_BV
(
X_AXIS
)
|
_BV
(
Y_AXIS
))
)
{
if
(
axis_
homed
[
X_AXIS
]
&&
axis_homed
[
Y_AXIS
]
)
{
current_position
[
Z_AXIS
]
=
0
;
sync_plan_position
();
...
...
@@ -3643,7 +3647,6 @@ inline void gcode_G28() {
feedrate
=
xy_travel_speed
;
if
(
DEBUGGING
(
INFO
))
{
ECHO_SMV
(
INFO
,
"Raise Z (before homing) by "
,
(
float
)
Z_RAISE_BEFORE_HOMING
);
DEBUG_POS
(
" > home_all_axis"
,
current_position
);
DEBUG_POS
(
" > home_all_axis"
,
destination
);
}
...
...
@@ -6148,8 +6151,10 @@ inline void gcode_M226() {
Servo
*
srv
=
&
servo
[
servo_index
];
srv
->
attach
(
0
);
srv
->
write
(
servo_position
);
#if (DONDOLO_SERVO_DELAY > 0)
delay_ms
(
DONDOLO_SERVO_DELAY
);
srv
->
detach
();
#endif
}
else
{
ECHO_SM
(
ER
,
"Servo "
);
...
...
@@ -7601,8 +7606,10 @@ inline void gcode_T(uint8_t tmp_extruder) {
else
if
(
target_extruder
==
1
)
{
servo
[
DONDOLO_SERVO_INDEX
].
write
(
DONDOLO_SERVOPOS_E1
);
}
#if (DONDOLO_SERVO_DELAY > 0)
delay_ms
(
DONDOLO_SERVO_DELAY
);
servo
[
DONDOLO_SERVO_INDEX
].
detach
();
#endif
previous_extruder
=
active_extruder
;
#if ENABLED(DONDOLO_SINGLE_MOTOR)
active_extruder
=
target_extruder
;
...
...
MK/module/conditionals.h
View file @
4a191428
...
...
@@ -475,10 +475,9 @@
#endif
/**
*
Avoid double-negatives for enabling features
*
Host keep alive
*/
#if DISABLED(DISABLE_HOST_KEEPALIVE)
#define HOST_KEEPALIVE_FEATURE
#if DISABLED(DEFAULT_KEEPALIVE_INTERVAL)
#define DEFAULT_KEEPALIVE_INTERVAL 2
#endif
...
...
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