move display notification after leveling for Chiron into ExtUI hook

This commit is contained in:
Stefan Kalscheuer
2022-12-23 17:49:15 +01:00
parent 36c8aee75b
commit b115276fee
4 changed files with 15 additions and 6 deletions

View File

@@ -806,11 +806,6 @@ G29_TYPE GcodeSuite::G29() {
bedlevel.set_grid(abl.gridSpacing, abl.probe_position_lf); bedlevel.set_grid(abl.gridSpacing, abl.probe_position_lf);
COPY(bedlevel.z_values, abl.z_values); COPY(bedlevel.z_values, abl.z_values);
TERN_(IS_KINEMATIC, bedlevel.extrapolate_unprobed_bed_level()); TERN_(IS_KINEMATIC, bedlevel.extrapolate_unprobed_bed_level());
#if ENABLED(KNUTWURST_TFT_LEVELING)
LCD_SERIAL.print("J25\r\n"); // Autoleveling done!
#endif
bedlevel.refresh_bed_level(); bedlevel.refresh_bed_level();
bedlevel.print_leveling_grid(); bedlevel.print_leveling_grid();

View File

@@ -2333,5 +2333,11 @@
#endif #endif
} }
#if ENABLED(KNUTWURST_TFT_LEVELING)
void AnycubicTouchscreenClass::LevelingDone() {
SENDLINE_DBG_PGM("J25", "TFT Serial Debug: Auto leveling done... J25");
}
#endif
AnycubicTouchscreenClass AnycubicTouchscreen; AnycubicTouchscreenClass AnycubicTouchscreen;
#endif // ifdef ANYCUBIC_TOUCHSCREEN #endif // ifdef ANYCUBIC_TOUCHSCREEN

View File

@@ -259,6 +259,9 @@ void KillTFT();
#if BOTH(ANYCUBIC_TFT_DEBUG, KNUTWURST_DGUS2_TFT) #if BOTH(ANYCUBIC_TFT_DEBUG, KNUTWURST_DGUS2_TFT)
void Command(const char * const command); void Command(const char * const command);
#endif #endif
#if ENABLED(KNUTWURST_TFT_LEVELING)
void LevelingDone();
#endif
char TFTstate = ANYCUBIC_TFT_STATE_IDLE; char TFTstate = ANYCUBIC_TFT_STATE_IDLE;
/** /**

View File

@@ -92,7 +92,12 @@ namespace ExtUI {
#if HAS_MESH #if HAS_MESH
void onLevelingStart() {} void onLevelingStart() {}
void onLevelingDone() {}
void onLevelingDone() {
#if ENABLED(KNUTWURST_TFT_LEVELING)
AnycubicTouchscreen.LevelingDone();
#endif
}
void onMeshUpdate(const int8_t xpos, const int8_t ypos, const_float_t zval) { void onMeshUpdate(const int8_t xpos, const int8_t ypos, const_float_t zval) {
// Called when any mesh points are updated // Called when any mesh points are updated