Browse Source

✏️ Fix MKS enum

FB4S_WIFI
Scott Lahteine 3 years ago
parent
commit
38e0e92e9d
  1. 2
      Marlin/src/lcd/extui/dgus/mks/DGUSDisplayDef.h
  2. 6
      Marlin/src/lcd/extui/dgus/mks/DGUSScreenHandler.cpp

2
Marlin/src/lcd/extui/dgus/mks/DGUSDisplayDef.h

@ -100,7 +100,7 @@ extern EX_FILAMENT_DEF ex_filament;
typedef enum {
UNRUNOUT_STATUS,
RUNOUT_STATUS,
RUNOUT_WAITTING_STATUS,
RUNOUT_WAITING_STATUS,
RUNOUT_BEGIN_STATUS,
} RUNOUT_MKS_STATUS_DEF;

6
Marlin/src/lcd/extui/dgus/mks/DGUSScreenHandler.cpp

@ -195,7 +195,7 @@ void DGUSScreenHandler::DGUSLCD_SendTMCStepValue(DGUS_VP_Variable &var) {
case 0: { // Resume
auto cs = getCurrentScreen();
if (runout_mks.runout_status != RUNOUT_WAITTING_STATUS && runout_mks.runout_status != UNRUNOUT_STATUS) {
if (runout_mks.runout_status != RUNOUT_WAITING_STATUS && runout_mks.runout_status != UNRUNOUT_STATUS) {
if (cs == MKSLCD_SCREEN_PRINT || cs == MKSLCD_SCREEN_PAUSE)
GotoScreen(MKSLCD_SCREEN_PAUSE);
return;
@ -1501,10 +1501,10 @@ void DGUSScreenHandler::DGUS_Runout_Idle(void) {
case RUNOUT_BEGIN_STATUS:
if (READ(MT_DET_1_PIN) != MT_DET_PIN_STATE)
runout_mks.runout_status = RUNOUT_WAITTING_STATUS;
runout_mks.runout_status = RUNOUT_WAITING_STATUS;
break;
case RUNOUT_WAITTING_STATUS:
case RUNOUT_WAITING_STATUS:
if (READ(MT_DET_1_PIN) == MT_DET_PIN_STATE)
runout_mks.runout_status = RUNOUT_BEGIN_STATUS;
break;

Loading…
Cancel
Save