diff --git a/Software/Software.ino b/Software/Software.ino index 9db0bc83..9f8b5991 100644 --- a/Software/Software.ino +++ b/Software/Software.ino @@ -136,10 +136,10 @@ unsigned long timeSpentInFaultedMode = 0; #endif #ifdef EQUIPMENT_STOP_BUTTON -volatile unsigned long equipment_button_press_time = 0; // Time when button is pressed -const unsigned long equipment_button_long_press_duration = 5000; // 5 seconds for long press -int equipment_button_lastState = HIGH; // the previous state from the input pin NC -int equipment_button_currentState; // the current reading from the input pin +volatile unsigned long equipment_button_press_time = 0; // Time when button is pressed +const unsigned long equipment_button_long_press_duration = 15000; // 15 seconds for long press +int equipment_button_lastState = HIGH; // the previous state from the input pin NC +int equipment_button_currentState; // the current reading from the input pin unsigned long equipment_button_pressedTime = 0; unsigned long equipment_button_releasedTime = 0; bool first_run_after_boot = true; diff --git a/Software/USER_SETTINGS.cpp b/Software/USER_SETTINGS.cpp index 9c203e0a..3f50223a 100644 --- a/Software/USER_SETTINGS.cpp +++ b/Software/USER_SETTINGS.cpp @@ -51,7 +51,7 @@ const char* mqtt_password = "REDACTED"; // Set NULL for no password #ifdef EQUIPMENT_STOP_BUTTON // Equipment stop button behavior. Use NC button for safety reasons. //LATCHING_SWITCH - Normally closed (NC), latching switch. When pressed it activates e-stop -//MOMENTARY_SWITCH - Short press to activate e-stop, long 5s press to deactivate. E-stop is persistent between reboots +//MOMENTARY_SWITCH - Short press to activate e-stop, long 15s press to deactivate. E-stop is persistent between reboots volatile STOP_BUTTON_BEHAVIOR equipment_stop_behavior = LATCHING_SWITCH; #endif