Commit 81a76d86 authored by MagoKimbra's avatar MagoKimbra

Merge remote-tracking branch 'refs/remotes/origin/master' into dev

parents 66125af0 4a191428
...@@ -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.
/***********************************************************************/ /***********************************************************************/
......
...@@ -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
......
...@@ -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;
......
...@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment