Add more TFT debugging messages.

This commit is contained in:
Knutwurst
2023-06-07 09:03:20 +02:00
parent acee1592c9
commit f7060d5524
2 changed files with 17 additions and 2 deletions

View File

@@ -41,10 +41,10 @@
* 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-RC1" #define CUSTOM_BUILD_VERSION "1.5.0-RC2"
#ifndef STRING_DISTRIBUTION_DATE #ifndef STRING_DISTRIBUTION_DATE
#define STRING_DISTRIBUTION_DATE "2023-06-02" #define STRING_DISTRIBUTION_DATE "2023-06-07"
#endif #endif
/** /**

View File

@@ -1686,16 +1686,28 @@ void AnycubicTouchscreenClass::RenderCurrentFolder(uint16_t selectedNumber) {
case 41: case 41:
if (CodeSeen('O')) { if (CodeSeen('O')) {
PrintdoneAndPowerOFF = true; PrintdoneAndPowerOFF = true;
#if ENABLED(ANYCUBIC_TFT_DEBUG)
SERIAL_ECHOLNPGM("TFT Serial Debug: PrintdoneAndPowerOFF is set!");
#endif
break; break;
} }
else if (CodeSeen('C')) { else if (CodeSeen('C')) {
PrintdoneAndPowerOFF = false; PrintdoneAndPowerOFF = false;
#if ENABLED(ANYCUBIC_TFT_DEBUG)
SERIAL_ECHOLNPGM("TFT Serial Debug: PrintdoneAndPowerOFF is disabled!");
#endif
break; break;
} }
if (CodeSeen('S')) { if (CodeSeen('S')) {
if (PrintdoneAndPowerOFF) if (PrintdoneAndPowerOFF)
#if ENABLED(ANYCUBIC_TFT_DEBUG)
SERIAL_ECHOLNPGM("TFT Serial Debug: Sending J35 because PrintdoneAndPowerOFF = true");
#endif
SENDLINE_PGM("J35 "); SENDLINE_PGM("J35 ");
else else
#if ENABLED(ANYCUBIC_TFT_DEBUG)
SERIAL_ECHOLNPGM("TFT Serial Debug: Sending J34 because PrintdoneAndPowerOFF = false");
#endif
SENDLINE_PGM("J34 "); SENDLINE_PGM("J34 ");
} }
break; break;
@@ -1904,6 +1916,9 @@ void AnycubicTouchscreenClass::RenderCurrentFolder(uint16_t selectedNumber) {
#if ENABLED(KNUTWURST_4MAXP2) #if ENABLED(KNUTWURST_4MAXP2)
void PowerDown() { void PowerDown() {
#if ENABLED(ANYCUBIC_TFT_DEBUG)
SERIAL_ECHOLNPGM("TFT Serial Debug: PowerDown is called!");
#endif
for (unsigned char i = 0; i < 3; i++) { for (unsigned char i = 0; i < 3; i++) {
WRITE(POWER_OFF_PIN, LOW); WRITE(POWER_OFF_PIN, LOW);
delay(10); delay(10);