@@ -86,7 +86,7 @@ void AnycubicTFTClass::OnSetup() {
|
||||
delay_ms(10);
|
||||
|
||||
// Init the state of the key pins running on the TFT
|
||||
#if ENABLED(SDSUPPORT) && PIN_EXISTS(SD_DETECT)
|
||||
#if BOTH(SDSUPPORT, HAS_SD_DETECT)
|
||||
SET_INPUT_PULLUP(SD_DETECT_PIN);
|
||||
#endif
|
||||
#if ENABLED(FILAMENT_RUNOUT_SENSOR)
|
||||
@@ -916,7 +916,7 @@ void AnycubicTFTClass::GetCommandFromTFT() {
|
||||
}
|
||||
|
||||
void AnycubicTFTClass::DoSDCardStateCheck() {
|
||||
#if ENABLED(SDSUPPORT) && PIN_EXISTS(SD_DETECT)
|
||||
#if BOTH(SDSUPPORT, HAS_SD_DETECT)
|
||||
bool isInserted = isMediaInserted();
|
||||
if (isInserted)
|
||||
SENDLINE_DBG_PGM("J00", "TFT Serial Debug: SD card state changed... isInserted");
|
||||
|
||||
Reference in New Issue
Block a user