Browse Source

Minimum delay in menu click feedback

Squished #1849
Scott Lahteine 9 years ago
parent
commit
cf9b58452c
1 changed files with 3 additions and 1 deletions
  1. 3
    1
      Marlin/ultralcd.cpp

+ 3
- 1
Marlin/ultralcd.cpp View File

@@ -1159,7 +1159,9 @@ static void lcd_quick_feedback() {
1159 1159
       delayMicroseconds(delay);
1160 1160
       WRITE(BEEPER,LOW);
1161 1161
       delayMicroseconds(delay);
1162
-     }
1162
+    }
1163
+    const int j = max(10000 - LCD_FEEDBACK_FREQUENCY_DURATION_MS * 1000, 0);
1164
+    if (j) delayMicroseconds(j);
1163 1165
   #endif
1164 1166
 }
1165 1167
 

Loading…
Cancel
Save