|
@@ -374,7 +374,12 @@ static void lcd_move_x()
|
374
|
374
|
if (max_software_endstops && current_position[X_AXIS] > X_MAX_POS)
|
375
|
375
|
current_position[X_AXIS] = X_MAX_POS;
|
376
|
376
|
encoderPosition = 0;
|
|
377
|
+ #ifdef DELTA
|
|
378
|
+ calculate_delta(current_position);
|
|
379
|
+ plan_buffer_line(delta[X_AXIS], delta[Y_AXIS], delta[Z_AXIS], current_position[E_AXIS], 600, active_extruder);
|
|
380
|
+ #else
|
377
|
381
|
plan_buffer_line(current_position[X_AXIS], current_position[Y_AXIS], current_position[Z_AXIS], current_position[E_AXIS], 600, active_extruder);
|
|
382
|
+ #endif
|
378
|
383
|
lcdDrawUpdate = 1;
|
379
|
384
|
}
|
380
|
385
|
if (lcdDrawUpdate)
|
|
@@ -398,7 +403,12 @@ static void lcd_move_y()
|
398
|
403
|
if (max_software_endstops && current_position[Y_AXIS] > Y_MAX_POS)
|
399
|
404
|
current_position[Y_AXIS] = Y_MAX_POS;
|
400
|
405
|
encoderPosition = 0;
|
|
406
|
+ #ifdef DELTA
|
|
407
|
+ calculate_delta(current_position);
|
|
408
|
+ plan_buffer_line(delta[X_AXIS], delta[Y_AXIS], delta[Z_AXIS], current_position[E_AXIS], 600, active_extruder);
|
|
409
|
+ #else
|
401
|
410
|
plan_buffer_line(current_position[X_AXIS], current_position[Y_AXIS], current_position[Z_AXIS], current_position[E_AXIS], 600, active_extruder);
|
|
411
|
+ #endif
|
402
|
412
|
lcdDrawUpdate = 1;
|
403
|
413
|
}
|
404
|
414
|
if (lcdDrawUpdate)
|
|
@@ -422,7 +432,12 @@ static void lcd_move_z()
|
422
|
432
|
if (max_software_endstops && current_position[Z_AXIS] > Z_MAX_POS)
|
423
|
433
|
current_position[Z_AXIS] = Z_MAX_POS;
|
424
|
434
|
encoderPosition = 0;
|
|
435
|
+ #ifdef DELTA
|
|
436
|
+ calculate_delta(current_position);
|
|
437
|
+ plan_buffer_line(delta[X_AXIS], delta[Y_AXIS], delta[Z_AXIS], current_position[E_AXIS], homing_feedrate[Z_AXIS]/60, active_extruder);
|
|
438
|
+ #else
|
425
|
439
|
plan_buffer_line(current_position[X_AXIS], current_position[Y_AXIS], current_position[Z_AXIS], current_position[E_AXIS], homing_feedrate[Z_AXIS]/60, active_extruder);
|
|
440
|
+ #endif
|
426
|
441
|
lcdDrawUpdate = 1;
|
427
|
442
|
}
|
428
|
443
|
if (lcdDrawUpdate)
|
|
@@ -442,7 +457,12 @@ static void lcd_move_e()
|
442
|
457
|
{
|
443
|
458
|
current_position[E_AXIS] += float((int)encoderPosition) * move_menu_scale;
|
444
|
459
|
encoderPosition = 0;
|
|
460
|
+ #ifdef DELTA
|
|
461
|
+ calculate_delta(current_position);
|
|
462
|
+ plan_buffer_line(delta[X_AXIS], delta[Y_AXIS], delta[Z_AXIS], current_position[E_AXIS], 20, active_extruder);
|
|
463
|
+ #else
|
445
|
464
|
plan_buffer_line(current_position[X_AXIS], current_position[Y_AXIS], current_position[Z_AXIS], current_position[E_AXIS], 20, active_extruder);
|
|
465
|
+ #endif
|
446
|
466
|
lcdDrawUpdate = 1;
|
447
|
467
|
}
|
448
|
468
|
if (lcdDrawUpdate)
|