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
81a76d86
Commit
81a76d86
authored
May 16, 2016
by
MagoKimbra
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'refs/remotes/origin/master' into dev
parents
66125af0
4a191428
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 @
81a76d86
...
@@ -55,10 +55,13 @@
...
@@ -55,10 +55,13 @@
// Uncomment to include more info in ok command
// Uncomment to include more info in ok command
//#define ADVANCED_OK
//#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.
// every couple of seconds when it can't accept commands.
// Enable this option if your host doesn't like keepalive messages.
#define HOST_KEEPALIVE_FEATURE // Disable this if your host doesn't like keepalive messages
//#define DISABLE_HOST_KEEPALIVE
#define DEFAULT_KEEPALIVE_INTERVAL 2 // Number of seconds between "busy" messages. Set with M113.
/***********************************************************************/
/***********************************************************************/
...
...
MK/Configuration_Pins.h
View file @
81a76d86
...
@@ -94,6 +94,8 @@
...
@@ -94,6 +94,8 @@
#define E0E1_CHOICE_PIN -1
#define E0E1_CHOICE_PIN -1
#define E0E2_CHOICE_PIN -1
#define E0E2_CHOICE_PIN -1
#define E0E3_CHOICE_PIN -1
#define E0E3_CHOICE_PIN -1
#define E0E4_CHOICE_PIN -1
#define E0E5_CHOICE_PIN -1
#define E1E3_CHOICE_PIN -1
#define E1E3_CHOICE_PIN -1
#endif
#endif
...
...
MK/module/MK_Main.cpp
View file @
81a76d86
...
@@ -585,9 +585,11 @@ bool enqueue_and_echo_command(const char* cmd, bool say_ok/*=false*/) {
...
@@ -585,9 +585,11 @@ bool enqueue_and_echo_command(const char* cmd, bool say_ok/*=false*/) {
#if HAS(DONDOLO)
#if HAS(DONDOLO)
servo
[
DONDOLO_SERVO_INDEX
].
attach
(
0
);
servo
[
DONDOLO_SERVO_INDEX
].
attach
(
0
);
servo
[
DONDOLO_SERVO_INDEX
].
write
(
DONDOLO_SERVOPOS_E0
);
servo
[
DONDOLO_SERVO_INDEX
].
write
(
DONDOLO_SERVOPOS_E0
);
#if (DONDOLO_SERVO_DELAY > 0)
delay_ms
(
DONDOLO_SERVO_DELAY
);
delay_ms
(
DONDOLO_SERVO_DELAY
);
servo
[
DONDOLO_SERVO_INDEX
].
detach
();
servo
[
DONDOLO_SERVO_INDEX
].
detach
();
#endif
#endif
#endif
// Set position of Servo Endstops that are defined
// Set position of Servo Endstops that are defined
#if HAS(SERVO_ENDSTOPS)
#if HAS(SERVO_ENDSTOPS)
...
@@ -3632,8 +3634,10 @@ inline void gcode_G28() {
...
@@ -3632,8 +3634,10 @@ inline void gcode_G28() {
#elif ENABLED(Z_SAFE_HOMING)
#elif ENABLED(Z_SAFE_HOMING)
if
(
home_all_axis
||
homeZ
)
{
if
(
home_all_axis
||
homeZ
)
{
if
(
DEBUGGING
(
INFO
))
ECHO_LM
(
INFO
,
"> Z_SAFE_HOMING >>>"
);
// Let's see if X and Y are homed
// 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
;
current_position
[
Z_AXIS
]
=
0
;
sync_plan_position
();
sync_plan_position
();
...
@@ -3643,7 +3647,6 @@ inline void gcode_G28() {
...
@@ -3643,7 +3647,6 @@ inline void gcode_G28() {
feedrate
=
xy_travel_speed
;
feedrate
=
xy_travel_speed
;
if
(
DEBUGGING
(
INFO
))
{
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"
,
current_position
);
DEBUG_POS
(
" > home_all_axis"
,
destination
);
DEBUG_POS
(
" > home_all_axis"
,
destination
);
}
}
...
@@ -6148,8 +6151,10 @@ inline void gcode_M226() {
...
@@ -6148,8 +6151,10 @@ inline void gcode_M226() {
Servo
*
srv
=
&
servo
[
servo_index
];
Servo
*
srv
=
&
servo
[
servo_index
];
srv
->
attach
(
0
);
srv
->
attach
(
0
);
srv
->
write
(
servo_position
);
srv
->
write
(
servo_position
);
#if (DONDOLO_SERVO_DELAY > 0)
delay_ms
(
DONDOLO_SERVO_DELAY
);
delay_ms
(
DONDOLO_SERVO_DELAY
);
srv
->
detach
();
srv
->
detach
();
#endif
}
}
else
{
else
{
ECHO_SM
(
ER
,
"Servo "
);
ECHO_SM
(
ER
,
"Servo "
);
...
@@ -7601,8 +7606,10 @@ inline void gcode_T(uint8_t tmp_extruder) {
...
@@ -7601,8 +7606,10 @@ inline void gcode_T(uint8_t tmp_extruder) {
else
if
(
target_extruder
==
1
)
{
else
if
(
target_extruder
==
1
)
{
servo
[
DONDOLO_SERVO_INDEX
].
write
(
DONDOLO_SERVOPOS_E1
);
servo
[
DONDOLO_SERVO_INDEX
].
write
(
DONDOLO_SERVOPOS_E1
);
}
}
#if (DONDOLO_SERVO_DELAY > 0)
delay_ms
(
DONDOLO_SERVO_DELAY
);
delay_ms
(
DONDOLO_SERVO_DELAY
);
servo
[
DONDOLO_SERVO_INDEX
].
detach
();
servo
[
DONDOLO_SERVO_INDEX
].
detach
();
#endif
previous_extruder
=
active_extruder
;
previous_extruder
=
active_extruder
;
#if ENABLED(DONDOLO_SINGLE_MOTOR)
#if ENABLED(DONDOLO_SINGLE_MOTOR)
active_extruder
=
target_extruder
;
active_extruder
=
target_extruder
;
...
...
MK/module/conditionals.h
View file @
81a76d86
...
@@ -475,10 +475,9 @@
...
@@ -475,10 +475,9 @@
#endif
#endif
/**
/**
*
Avoid double-negatives for enabling features
*
Host keep alive
*/
*/
#if DISABLED(DISABLE_HOST_KEEPALIVE)
#if DISABLED(DEFAULT_KEEPALIVE_INTERVAL)
#define HOST_KEEPALIVE_FEATURE
#define DEFAULT_KEEPALIVE_INTERVAL 2
#define DEFAULT_KEEPALIVE_INTERVAL 2
#endif
#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