Sfoglia il codice sorgente

Merge pull request #833 from mattsch/optional_feedrate_multiplier

Add support for disabling encoder control for feedrate multiplier
ErikZalm 10 anni fa
parent
commit
a00cec8b71
2 ha cambiato i file con 7 aggiunte e 0 eliminazioni
  1. 5
    0
      Marlin/Configuration_adv.h
  2. 2
    0
      Marlin/ultralcd.cpp

+ 5
- 0
Marlin/Configuration_adv.h Vedi File

@@ -239,6 +239,11 @@
239 239
 #define MANUAL_FEEDRATE {50*60, 50*60, 4*60, 60}  // set the speeds for manual moves (mm/min)
240 240
 #endif
241 241
 
242
+//Comment to disable setting feedrate multiplier via encoder
243
+#ifdef ULTIPANEL
244
+    #define ULTIPANEL_FEEDMULTIPLY
245
+#endif
246
+
242 247
 // minimum time in microseconds that a movement needs to take if the buffer is emptied.
243 248
 #define DEFAULT_MINSEGMENTTIME        20000
244 249
 

+ 2
- 0
Marlin/ultralcd.cpp Vedi File

@@ -196,6 +196,7 @@ static void lcd_status_screen()
196 196
         lcd_quick_feedback();
197 197
     }
198 198
 
199
+#ifdef ULTIPANEL_FEEDMULTIPLY
199 200
     // Dead zone at 100% feedrate
200 201
     if ((feedmultiply < 100 && (feedmultiply + int(encoderPosition)) > 100) ||
201 202
             (feedmultiply > 100 && (feedmultiply + int(encoderPosition)) < 100))
@@ -219,6 +220,7 @@ static void lcd_status_screen()
219 220
         feedmultiply += int(encoderPosition);
220 221
         encoderPosition = 0;
221 222
     }
223
+#endif//ULTIPANEL_FEEDMULTIPLY
222 224
 
223 225
     if (feedmultiply < 10)
224 226
         feedmultiply = 10;

Loading…
Annulla
Salva