🎨 Update MKSPWC, some other pins (#22557)
This commit is contained in:
committed by
Scott Lahteine
parent
e62486a610
commit
eb0d80cb19
@@ -28,9 +28,9 @@
|
||||
#define LOGO_TIME_DELAY TERN(USE_MKS_GREEN_UI, 8000, 1500)
|
||||
|
||||
#if ENABLED(DGUS_MKS_RUNOUT_SENSOR)
|
||||
#define MT_DET_1_PIN 1
|
||||
#define MT_DET_2_PIN 2
|
||||
#define MT_DET_PIN_INVERTING false
|
||||
#define MT_DET_1_PIN 1
|
||||
#define MT_DET_2_PIN 2
|
||||
#define MT_DET_PIN_STATE LOW
|
||||
#endif
|
||||
|
||||
#define MKS_FINSH
|
||||
|
@@ -1495,17 +1495,17 @@ void DGUSScreenHandler::DGUS_Runout_Idle(void) {
|
||||
break;
|
||||
|
||||
case UNRUNOUT_STATUS:
|
||||
if (READ(MT_DET_1_PIN) == LOW)
|
||||
if (READ(MT_DET_1_PIN) == MT_DET_PIN_STATE)
|
||||
runout_mks.runout_status = RUNOUT_STATUS;
|
||||
break;
|
||||
|
||||
case RUNOUT_BEGIN_STATUS:
|
||||
if (READ(MT_DET_1_PIN) == HIGH)
|
||||
if (READ(MT_DET_1_PIN) != MT_DET_PIN_STATE)
|
||||
runout_mks.runout_status = RUNOUT_WAITTING_STATUS;
|
||||
break;
|
||||
|
||||
case RUNOUT_WAITTING_STATUS:
|
||||
if (READ(MT_DET_1_PIN) == LOW)
|
||||
if (READ(MT_DET_1_PIN) == MT_DET_PIN_STATE)
|
||||
runout_mks.runout_status = RUNOUT_BEGIN_STATUS;
|
||||
break;
|
||||
|
||||
|
Reference in New Issue
Block a user