Browse Source

Merge pull request #833 from mattsch/optional_feedrate_multiplier

Add support for disabling encoder control for feedrate multiplier
ErikZalm 10 years ago
parent
commit
a00cec8b71
2 changed files with 7 additions and 0 deletions
  1. 5
    0
      Marlin/Configuration_adv.h
  2. 2
    0
      Marlin/ultralcd.cpp

+ 5
- 0
Marlin/Configuration_adv.h View File

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

+ 2
- 0
Marlin/ultralcd.cpp View File

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

Loading…
Cancel
Save