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