Reenable auto power off on 4MAX Pro 2.0

This commit is contained in:
Knutwurst
2023-06-03 19:45:48 +02:00
parent 7b0aa6ec6a
commit 61fba37678

View File

@@ -1917,6 +1917,13 @@ void AnycubicTouchscreenClass::RenderCurrentFolder(uint16_t selectedNumber) {
} }
} }
#if ENABLED(KNUTWURST_4MAXP2)
if (PrintdoneAndPowerOFF && powerOFFflag && (int(getActualTemp_celsius(E0) + 0.5) < 50 )) {
powerOFFflag = 0;
PowerDown();
}
#endif
if (TFTbuflen < (TFTBUFSIZE - 1)) if (TFTbuflen < (TFTBUFSIZE - 1))
GetCommandFromTFT(); GetCommandFromTFT();