|
@ -123,12 +123,10 @@ void AnycubicTFTClass::OnSetup() { |
|
|
|
|
|
|
|
|
// initialise the state of the key pins running on the tft
|
|
|
// initialise the state of the key pins running on the tft
|
|
|
#if ENABLED(SDSUPPORT) && PIN_EXISTS(SD_DETECT) |
|
|
#if ENABLED(SDSUPPORT) && PIN_EXISTS(SD_DETECT) |
|
|
pinMode(SD_DETECT_PIN, INPUT); |
|
|
SET_INPUT_PULLUP(SD_DETECT_PIN); |
|
|
WRITE(SD_DETECT_PIN, HIGH); |
|
|
|
|
|
#endif |
|
|
#endif |
|
|
#if ENABLED(FILAMENT_RUNOUT_SENSOR) |
|
|
#if ENABLED(FILAMENT_RUNOUT_SENSOR) |
|
|
pinMode(FIL_RUNOUT_PIN, INPUT); |
|
|
SET_INPUT_PULLUP(FIL_RUNOUT_PIN); |
|
|
WRITE(FIL_RUNOUT_PIN, HIGH); |
|
|
|
|
|
#endif |
|
|
#endif |
|
|
|
|
|
|
|
|
mediaPrintingState = AMPRINTSTATE_NOT_PRINTING; |
|
|
mediaPrintingState = AMPRINTSTATE_NOT_PRINTING; |
|
|