Set release version and clean up some code snippets.

This commit is contained in:
Knutwurst
2023-06-02 17:42:29 +02:00
parent bf80c9b8dd
commit bb4ee37676
2 changed files with 2 additions and 10 deletions

View File

@@ -41,7 +41,7 @@
* here we define this default string as the date where the latest release
* version was tagged.
*/
#define CUSTOM_BUILD_VERSION "1.5.0-b7"
#define CUSTOM_BUILD_VERSION "1.5.0-RC1"
#ifndef STRING_DISTRIBUTION_DATE
#define STRING_DISTRIBUTION_DATE "2023-06-02"

View File

@@ -1615,11 +1615,6 @@ void AnycubicTouchscreenClass::RenderCurrentFolder(uint16_t selectedNumber) {
else {
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();
setSoftEndstopState(false);
if (isPrinting()) {
@@ -1661,7 +1656,6 @@ void AnycubicTouchscreenClass::RenderCurrentFolder(uint16_t selectedNumber) {
LCD_SERIAL.println(getZOffset_mm());
if (isAxisPositionKnown(Z)) {
// Move Z axis
const float currZpos = getAxisPosition_mm(Z);
#if ENABLED(ANYCUBIC_TFT_DEBUG)
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);
#endif
setMeshPoint(pos,newval);
if (mediaPrintingState == AMPRINTSTATE_NOT_PRINTING || mediaPrintingState == AMPRINTSTATE_PROBING/*!isPrinting()*/) {
// 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 (mediaPrintingState == AMPRINTSTATE_NOT_PRINTING || mediaPrintingState == AMPRINTSTATE_PROBING) {
if (selectedmeshpoint.x == pos.x && selectedmeshpoint.y == pos.y) {
setSoftEndstopState(false);
float currZpos = getAxisPosition_mm(Z);