Set release version and clean up some code snippets.
This commit is contained in:
@@ -41,7 +41,7 @@
|
|||||||
* here we define this default string as the date where the latest release
|
* here we define this default string as the date where the latest release
|
||||||
* version was tagged.
|
* version was tagged.
|
||||||
*/
|
*/
|
||||||
#define CUSTOM_BUILD_VERSION "1.5.0-b7"
|
#define CUSTOM_BUILD_VERSION "1.5.0-RC1"
|
||||||
|
|
||||||
#ifndef STRING_DISTRIBUTION_DATE
|
#ifndef STRING_DISTRIBUTION_DATE
|
||||||
#define STRING_DISTRIBUTION_DATE "2023-06-02"
|
#define STRING_DISTRIBUTION_DATE "2023-06-02"
|
||||||
|
@@ -1615,11 +1615,6 @@ void AnycubicTouchscreenClass::RenderCurrentFolder(uint16_t selectedNumber) {
|
|||||||
|
|
||||||
else {
|
else {
|
||||||
if (CodeSeen('S')) { // Set offset (adjusts all points by value)
|
if (CodeSeen('S')) { // Set offset (adjusts all points by value)
|
||||||
// TODO: Is this the correct value? Old Code:
|
|
||||||
// int8_t tokenpos = FindToken('S');
|
|
||||||
// if (tokenpos >= 0) {
|
|
||||||
// float Zshift = atof(&panel_command[tokenpos+1]);
|
|
||||||
|
|
||||||
float Zshift = CodeValue();
|
float Zshift = CodeValue();
|
||||||
setSoftEndstopState(false);
|
setSoftEndstopState(false);
|
||||||
if (isPrinting()) {
|
if (isPrinting()) {
|
||||||
@@ -1661,7 +1656,6 @@ void AnycubicTouchscreenClass::RenderCurrentFolder(uint16_t selectedNumber) {
|
|||||||
LCD_SERIAL.println(getZOffset_mm());
|
LCD_SERIAL.println(getZOffset_mm());
|
||||||
|
|
||||||
if (isAxisPositionKnown(Z)) {
|
if (isAxisPositionKnown(Z)) {
|
||||||
// Move Z axis
|
|
||||||
const float currZpos = getAxisPosition_mm(Z);
|
const float currZpos = getAxisPosition_mm(Z);
|
||||||
#if ENABLED(ANYCUBIC_TFT_DEBUG)
|
#if ENABLED(ANYCUBIC_TFT_DEBUG)
|
||||||
SERIAL_ECHOLNPGM("Move Z pos from ", currZpos, " to ", currZpos + constrain(Zshift, -0.05, 0.05));
|
SERIAL_ECHOLNPGM("Move Z pos from ", currZpos, " to ", currZpos + constrain(Zshift, -0.05, 0.05));
|
||||||
@@ -1697,9 +1691,7 @@ void AnycubicTouchscreenClass::RenderCurrentFolder(uint16_t selectedNumber) {
|
|||||||
SERIAL_ECHOLNPGM("from ", currmesh, " to ", newval);
|
SERIAL_ECHOLNPGM("from ", currmesh, " to ", newval);
|
||||||
#endif
|
#endif
|
||||||
setMeshPoint(pos,newval);
|
setMeshPoint(pos,newval);
|
||||||
if (mediaPrintingState == AMPRINTSTATE_NOT_PRINTING || mediaPrintingState == AMPRINTSTATE_PROBING/*!isPrinting()*/) {
|
if (mediaPrintingState == AMPRINTSTATE_NOT_PRINTING || mediaPrintingState == AMPRINTSTATE_PROBING) {
|
||||||
// if we are at the current mesh point indicated on the panel Move Z pos +/- 0.05mm
|
|
||||||
// (The panel changes the mesh value by +/- 0.05mm on each button press)
|
|
||||||
if (selectedmeshpoint.x == pos.x && selectedmeshpoint.y == pos.y) {
|
if (selectedmeshpoint.x == pos.x && selectedmeshpoint.y == pos.y) {
|
||||||
setSoftEndstopState(false);
|
setSoftEndstopState(false);
|
||||||
float currZpos = getAxisPosition_mm(Z);
|
float currZpos = getAxisPosition_mm(Z);
|
||||||
|
Reference in New Issue
Block a user