Browse Source

LCD home button causes repeated homing (PR#175)

Fix: increased debounce delay.
fmalpartida 9 years ago
parent
commit
0f149ea0c6
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      Marlin/Marlin_main.cpp

+ 1
- 1
Marlin/Marlin_main.cpp View File

6978
     // Check to see if we have to home, use poor man's debouncer
6978
     // Check to see if we have to home, use poor man's debouncer
6979
     // ---------------------------------------------------------
6979
     // ---------------------------------------------------------
6980
     static int homeDebounceCount = 0;   // poor man's debouncing count
6980
     static int homeDebounceCount = 0;   // poor man's debouncing count
6981
-    const int HOME_DEBOUNCE_DELAY = 750;
6981
+    const int HOME_DEBOUNCE_DELAY = 2500;
6982
     if (!READ(HOME_PIN)) {
6982
     if (!READ(HOME_PIN)) {
6983
       if (!homeDebounceCount) {
6983
       if (!homeDebounceCount) {
6984
         enqueuecommands_P(PSTR("G28"));
6984
         enqueuecommands_P(PSTR("G28"));

Loading…
Cancel
Save