Bugfix for nozzle positioning via touchscreen, which was absolute instead of relative.

This commit is contained in:
Knutwurst
2020-06-06 23:55:40 +02:00
parent 3bbe852b3e
commit eaf291bf05
2 changed files with 5 additions and 4 deletions

View File

@@ -38,6 +38,9 @@
*/ */
#define CONFIGURATION_H_VERSION 020005 #define CONFIGURATION_H_VERSION 020005
#define KNUTWURST_MEGAS
#define KNUTWURST_TMC
//=========================================================================== //===========================================================================
//============================= Getting Started ============================= //============================= Getting Started =============================
//=========================================================================== //===========================================================================
@@ -2354,5 +2357,3 @@
#define ANYCUBIC_FILAMENT_RUNOUT_SENSOR #define ANYCUBIC_FILAMENT_RUNOUT_SENSOR
//#define ANYCUBIC_TFT_DEBUG //#define ANYCUBIC_TFT_DEBUG
#define KNUTWURST_MEGAS
#define KNUTWURST_TMC

View File

@@ -1283,7 +1283,7 @@ void AnycubicTouchscreenClass::GetCommandFromTFT()
if (CodeSeen('F')) // Set feedrate if (CodeSeen('F')) // Set feedrate
movespeed = CodeValue(); movespeed = CodeValue();
queue.inject_P(PSTR("G91")); // relative coordinates queue.enqueue_now_P(PSTR("G91")); // relative coordinates
if (CodeSeen('X')) // Move in X direction if (CodeSeen('X')) // Move in X direction
{ {
@@ -1353,7 +1353,7 @@ void AnycubicTouchscreenClass::GetCommandFromTFT()
} }
queue.enqueue_one_now(value); queue.enqueue_one_now(value);
} }
queue.inject_P(PSTR("G90")); // absolute coordinates queue.enqueue_now_P(PSTR("G90")); // absolute coordinates
} }
HARDWARE_SERIAL_ENTER(); HARDWARE_SERIAL_ENTER();
break; break;