Browse Source

Move FWRETRACT defaults to configuration_adv.h

pull/1/head
whosawhatsis 11 years ago
parent
commit
99f0e44864
  1. 10
      Marlin/Configuration_adv.h
  2. 8
      Marlin/Marlin_main.cpp

10
Marlin/Configuration_adv.h

@ -399,8 +399,14 @@ const unsigned int dropsegments=5; //everything with less than this number of st
// the moves are than replaced by the firmware controlled ones.
// #define FWRETRACT //ONLY PARTIALLY TESTED
#define MIN_RETRACT 0.1 //minimum extruded mm to accept a automatic gcode retraction attempt
#ifdef FWRETRACT
#define MIN_RETRACT 0.1 //minimum extruded mm to accept a automatic gcode retraction attempt
#define RETRACT_LENGTH 3 //default retract length (positive mm)
#define RETRACT_FEEDRATE 80*60 //default feedrate for retracting
#define RETRACT_ZLIFT 0 //default retract Z-lift
#define RETRACT_RECOVER_LENGTH 0 //default additional recover length (mm, added to retract length when recovering)
#define RETRACT_RECOVER_FEEDRATE 8*60 //default feedrate for recovering from retraction
#endif
//adds support for experimental filament exchange support M600; requires display
#ifdef ULTIPANEL

8
Marlin/Marlin_main.cpp

@ -233,8 +233,11 @@ int EtoPPressure=0;
#ifdef FWRETRACT
bool autoretract_enabled=true;
bool retracted=false;
float retract_length=3, retract_feedrate=17*60, retract_zlift=0.8;
float retract_recover_length=0, retract_recover_feedrate=8*60;
float retract_length = RETRACT_LENGTH;
float retract_feedrate = RETRACT_FEEDRATE;
float retract_zlift = RETRACT_ZLIFT;
float retract_recover_length = RETRACT_RECOVER_LENGTH;
float retract_recover_feedrate = RETRACT_RECOVER_FEEDRATE;
#endif
#ifdef ULTIPANEL
@ -1115,6 +1118,7 @@ static void homeaxis(int axis) {
}
} //retract
#endif //FWRETRACT
void process_commands()
{
unsigned long codenum; //throw away variable

Loading…
Cancel
Save