Reset Chiron TFT after successful G29.

This commit is contained in:
Knutwurst
2021-06-21 14:57:29 +02:00
parent 09801c54a0
commit 955b3aa21b
2 changed files with 11 additions and 6 deletions

View File

@@ -2031,14 +2031,10 @@ void AnycubicTouchscreenClass::GetCommandFromTFT()
//SERIAL_ECHOLNPGM("Z Up");
setAxisPosition_mm(5.0,Z);
//report_current_position();
//SERIAL_ECHOLNPGM("Move X");
setAxisPosition_mm(_GET_MESH_X(mx),X);
//report_current_position();
//SERIAL_ECHOLNPGM("Move Y");
setAxisPosition_mm(_GET_MESH_Y(my),Y);
//report_current_position();
//SERIAL_ECHOLNPGM("Z Down");
setAxisPosition_mm(EXT_LEVEL_HIGH,Z);
report_current_position();
@@ -2058,7 +2054,7 @@ void AnycubicTouchscreenClass::GetCommandFromTFT()
HARDWARE_SERIAL_ENTER();
}
if(CodeSeen('S') ) {
queue.enqueue_now_P(PSTR("G28\nG29"));
queue.enqueue_now_P(PSTR("G28\nG29\nG28"));
}
break;
case 31: // A31 z-offset
@@ -2144,7 +2140,7 @@ void AnycubicTouchscreenClass::GetCommandFromTFT()
HARDWARE_SERIAL_ENTER();
}
if(CodeSeen('S') ) {
queue.enqueue_now_P(PSTR("G28\nG29"));
queue.enqueue_now_P(PSTR("G28\nG29\nG28"));
}
#endif