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

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

View File

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

View File

@@ -92,7 +92,12 @@ namespace ExtUI {
#if HAS_MESH
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) {
// Called when any mesh points are updated