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
* version was tagged.
*/
#define CUSTOM_BUILD_VERSION "1.5.0-RC1"
#define CUSTOM_BUILD_VERSION "1.5.0-RC2"
#ifndef STRING_DISTRIBUTION_DATE
#define STRING_DISTRIBUTION_DATE "2023-06-02"
#define STRING_DISTRIBUTION_DATE "2023-06-07"
#endif
/**

View File

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