MKFirmware / MK4duo

MK4duo Firmware Printers 3D for Arduino and Arduino due
http://www.marlinkimbra.it
GNU General Public License v3.0
206 stars 117 forks source link

Compiling Error Z2_Enable #315

Closed wext1 closed 6 years ago

wext1 commented 7 years ago

Issue description

i cant compile my Sketch, when i compile with "#define Z_TWO_STEPPER" no problem but when i try to compile with "#define Z_THREE_STEPPER" i get this Compile ERROR

Compile errors - IMPORTANT

In file included from sketch\src../src/motion/stepper.h:50:0,

             from sketch\src\../base.h:122,

             from sketch\src\MK_Main.cpp:31:

sketch\src\MK_Main.cpp: In function 'void gcode_M18_M84()':

sketch\src../src/motion/stepper_indirection.h:595:85: error: 'Z2_ENABLE_WRITE' was not declared in this scope

define disable_Z() do{ Z_ENABLE_WRITE(!Z_ENABLE_ON); Z2_ENABLE_WRITE(!Z_ENABLE_ON); Z3_ENABLE_WRITE(!Z_ENABLE_ON); axis_known_position[Z_AXIS] = false; }while(0)

                                                                                 ^

sketch\src\MK_Main.cpp:7630:27: note: in expansion of macro 'disable_Z'

   if (code_seen('Z')) disable_Z();

                       ^

Firmware version

My Setup

/**

/**

/****

define CONFIGURATION_OVERALL

/***

/*****

/**

/*****

/* Below you will find the configuration string, that created with Configurator tool online marlinkimbra.it ========== Start configuration string ========== { "printer": "custom", "processor": 1, "serial": 0, "baudrates": 115200, "btserial": 0, "btbaudrates": 115200, "customname": "WEXT", "customconfig": "default config", "machineuuid": "00000000-0000-0000-0000-000000000000", "notimeouts": 1000, "advancedok": "0", "killMethod": 0, "motherboards": "BOARD_RADDS", "mechanism": 1, "power": "0", "defaultpower": "0", "delayafterpower": 5, "extruders": 1, "driverextruders": 1, "bed": "1", "chamber": "0", "cooler": "0", "tempunitsupport": "0", "dhtsupport": "0", "tempsensor0": "1", "tempsensor1": "0", "tempsensor2": "0", "tempsensor3": "0", "tempsensorbed": "1", "tempsensorchamber": "0", "tempsensorcooler": "0", "ad595offset": 0, "ad595gain": 1, "dummy998": 25, "dummy999": 25, "showadc": "0", "maxtemp0": 275, "maxtemp1": 275, "maxtemp2": 275, "maxtemp3": 275, "maxtempbed": 150, "maxtempchamber": 150, "maxtempcooler": 150, "mintemp0": 5, "mintemp1": 5, "mintemp2": 5, "mintemp3": 5, "mintempbed": 5, "mintempchamber": 5, "mintempcooler": 5, "plahotendtemp": 190, "plabedtemp": 60, "plafanspeed": 255, "abshotendtemp": 240, "absbedtemp": 100, "absfanspeed": 255, "gumhotendtemp": 230, "gumbedtemp": 60, "gumfanspeed": 255, "autotemp": "1", "autotempoldweight": 0.98, "heaterpwmspeed": 0, "bangmax": 255, "pidtemp": "1", "pidextrusionrate": "0", "pidkp0": 40, "pidki0": 7, "pidkd0": 60, "pidkc0": 100, "pidkp1": 40, "pidki1": 7, "pidkd1": 60, "pidkc1": 100, "pidkp2": 40, "pidki2": 7, "pidkd2": 60, "pidkc2": 100, "pidkp3": 40, "pidki3": 7, "pidkd3": 60, "pidkc3": 100, "pidbedtemp": "0", "maxbedpower": 255, "pidbedkp": 10, "pidbedki": 1, "pidbedkd": 305, "pidchambertemp": "0", "maxchamberpower": 255, "pidchamberkp": 10, "pidchamberki": 1, "pidchamberkd": 305, "pidcoolertemp": "0", "fastpwmcooler": "0", "maxcoolerpower": 255, "pidcoolerkp": 10, "pidcoolerki": 1, "pidcoolerkd": 305, "invertedheaterpins": "0", "invertedbedpin": "0", "invertedchamberpin": "0", "invertedcoolerpin": "0", "thermalprotectionhotend": "0", "thermalprotectionperiod": 40, "thermalprotectionhysteresis": 4, "thermalprotectionbed": "0", "thermalprotectionbedperiod": 20, "thermalprotectionbedhysteresis": 2, "thermalprotectionchamber": "0", "thermalprotectionchamberperiod": 20, "thermalprotectionchamberhysteresis": 2, "thermalprotectioncooler": "0", "thermalprotectioncoolerperiod": 20, "thermalprotectioncoolerhysteresis": 2, "uiprintername": "SPARK", "Xminendstop": "0", "Xmaxendstop": "0", "Yminendstop": "0", "Ymaxendstop": "0", "Zminendstop": "0", "Zmaxendstop": "0", "Z2minendstop": "0", "Z2maxendstop": "0", "Z3minendstop": "0", "Z3maxendstop": "0", "Z4minendstop": "0", "Z4maxendstop": "0", "Zprobeendstop": "0", "Eminendstop": "0", "Xhoming": 1, "Yhoming": 1, "Zhoming": 0, "Ehoming": 0, "Xinvertenable": "1", "Yinvertenable": "1", "Zinvertenable": "1", "Einvertenable": "1", "Xinvertstep": "0", "Yinvertstep": "0", "Zinvertstep": "0", "Einvertstep": "0", "Xinvertdir": "0", "Yinvertdir": "0", "Zinvertdir": "0", "E0invertdir": "0", "E1invertdir": "0", "E2invertdir": "0", "E3invertdir": "0", "E4invertdir": "0", "E5invertdir": "0", "disableX": "0", "disableY": "0", "disableZ": "0", "disableE": "0", "Xmaxpos": 250, "Xminpos": 0, "Ymaxpos": 220, "Yminpos": 0, "Zmaxpos": 300, "Zminpos": 0, "Zsafehoming": "0", "ZsafehomingX": 100, "ZsafehomingY": 100, "Zminheightbeforehoming": 0, "Zprobetype": "6", "Zprobesledoffset": 5, "Xprobeoffset": 0, "Yprobeoffset": 0, "Zprobeoffset": -1, "xyprobespeed": 8000, "zprobespeed": 3600, "zprobespeedfast": 200, "zprobespeedslow": 100, "zprobingrepeat": "0", "Zproberepetitions": 1, "Zraiseprobedeploystow": 15, "Zraisebetweenprobe": 10, "lcdbedlevel": "0", "lcdzstep": 0.025, "lcdprobezrange": 4, "levelingfadeheight": "0", "bedlevel": 4, "meshinset": 10, "meshg28rest": "0", "maxgridpointX": 4, "maxgridpointY": 4, "leftprobe": 60, "rightprobe": 220, "backprobe": 220, "frontprobe": 60, "Xprobe1": 60, "Yprobe1": 240, "Xprobe2": 60, "Yprobe2": 60, "Xprobe3": 240, "Yprobe3": 60, "manualhomepos": "0", "bedcenter00": "0", "Xhomepos": 0, "Yhomepos": 0, "Zhomepos": 0, "Xstepspermm": 640, "Ystepspermm": 640, "Zstepspermm": 4000, "E0stepspermm": 625, "E1stepspermm": 625, "E2stepspermm": 625, "E3stepspermm": 625, "E4stepspermm": 625, "E5stepspermm": 625, "Xmaxspeed": 300, "Ymaxspeed": 300, "Zmaxspeed": 4, "E0maxspeed": 100, "E1maxspeed": 100, "E2maxspeed": 100, "E3maxspeed": 100, "E4maxspeed": 100, "E5maxspeed": 100, "Xmanualspeed": 100, "Ymanualspeed": 100, "Zmanualspeed": 2, "Emanualspeed": 10, "minimumspeed": 0, "minimumtravelspeed": 0, "minimumplannerspeed": 0.05, "Xmaxacceleration": 3000, "Ymaxacceleration": 3000, "Zmaxacceleration": 100, "E0maxacceleration": 3000, "E1maxacceleration": 3000, "E2maxacceleration": 3000, "E3maxacceleration": 3000, "E4maxacceleration": 3000, "E5maxacceleration": 3000, "E0retractacceleration": 10000, "E1retractacceleration": 10000, "E2retractacceleration": 10000, "E3retractacceleration": 10000, "E4retractacceleration": 10000, "E5retractacceleration": 10000, "defaultacceleration": 3000, "defaulttravelacceleration": 3000, "maxXjerk": 15, "maxYjerk": 15, "maxZjerk": 0.4, "maxE0jerk": 5, "maxE1jerk": 5, "maxE2jerk": 5, "maxE3jerk": 5, "maxE4jerk": 5, "maxE5jerk": 5, "Xhomingspeed": 100, "Yhomingspeed": 100, "Zhomingspeed": 4, "XbumpMM": 5, "YbumpMM": 5, "ZbumpMM": 2, "Xbumpdivisor": 5, "Ybumpdivisor": 5, "Zbumpdivisor": 2, "hotendoffsetXE1": 0, "hotendoffsetXE2": 0, "hotendoffsetXE3": 0, "hotendoffsetYE1": 0, "hotendoffsetYE2": 0, "hotendoffsetYE3": 0, "hotendoffsetZE1": 0, "hotendoffsetZE2": 0, "hotendoffsetZE3": 0, "deltasegmentpersecond": 200, "deltadiagonalrod": 220, "deltasmoothrodoffset": 145, "deltaeffectoroffset": 20, "deltacarriageoffset": 20, "deltaprinterradius": 70, "deltaheight": 210, "towerAendstop": 0, "towerBendstop": 0, "towerCendstop": 0, "towerAangle": 0, "towerBangle": 0, "towerCangle": 0, "towerAradius": 0, "towerBradius": 0, "towerCradius": 0, "towerAdiagonalrod": 0, "towerBdiagonalrod": 0, "towerCdiagonalrod": 0, "deltaautoprecision": 0.1, "deltaautogrid": 7, "deltaXdeploystart": 0, "deltaYdeploystart": 0, "deltaZdeploystart": 30, "deltaXdeployend": 0, "deltaYdeployend": 0, "deltaZdeployend": 30, "deltaXretractstart": 0, "deltaYretractstart": 0, "deltaZretractstart": 30, "deltaXretractend": 0, "deltaYretractend": 0, "deltaZretractend": 0, "deltaautocalibration": 0, "deltahomesafezone": "1", "deltahomeonpower": "0", "fanpwmspeed": 0, "fankickstarttime": 0, "fanminpwm": 0, "autofan0": -1, "autofan1": 0, "autofan2": -1, "autofan3": -1, "autofan4": -1, "autofan5": -1, "Ecoolertemp": 50, "Ecoolerspeed": 255, "Ecoolerminspeed": 0, "defaultfilamentdia": 1.75, "dangerousextrude": "1", "extrudemintemp": 170, "lengthextrude": "1", "extrudemaxlenght": 400, "singlenozzle": "0", "baricuda": "0", "colormixingextruder": "0", "mixingsteppers": "2", "virtualtools": 16, "mkr4": "0", "invertrelepin": "0", "E0E1pin": -1, "E0E2pin": -1, "E1E3pin": -1, "mkr6": "0", "mkr12": "0", "EX1pin": -1, "EX2pin": -1, "npr2": "0", "E0angle": 0, "E1angle": 45, "E2angle": 90, "E3angle": 135, "E4angle": 180, "E5angle": 225, "dondolo": "0", "dondolodualmotor": "0", "dondoloservo": 0, "dondoloservoe0": 120, "dondoloservoe1": 10, "dondolodelay": 1000, "easyload": "0", "bowdenlenght": 250, "lcdpurgelenght": 10, "lcdretractlenght": 5, "lcdpurgefeedrate": 3, "lcdretractfeedrate": 5, "lcdloadfeedrate": 20, "lcdunloadfeedrate": 20, "filamentchangeenable": "0", "filamentchangeXpos": 3, "filamentchangeYpos": 3, "filamentchangeZadd": 10, "filamentchangexyfr": 100, "filamentchangezfr": 5, "filamentchangeretract": 5, "filamentchangeretractfr": 20, "filamentchangecooldown": 0, "filamentchangeretract2": 20, "filamentchangeretract2fr": 20, "filamentchangeunload": 100, "filamentchangeunloadfr": 50, "filamentchangeload": 100, "filamentchangeloadfr": 100, "filamentchangeextrude": 50, "filamentchangeextrudefr": 5, "filamentchangenozzletimeout": 45, "filamentchangeprinteroff": 5, "filamentchangenumberbeep": 5, "filamentchangenosteppertimeout": "1", "parkheadonpause": "0", "workspace": "0", "softwareminendstop": "1", "softwaremaxendstop": "1", "endstoponlyforhome": "1", "abortendstophit": "0", "abortendstophitinit": "1", "servos": "0", "numservos": 0, "Zservo": -1, "angleextendservosZ": 0, "angleretractservosZ": 0, "servodeactivate": "0", "servodeactivatedelay": 300, "Xtwostepper": "0", "X2vsXdir": "0", "Ytwostepper": "0", "Y2vsYdir": "0", "Zplusstepper": "1", "Ztwoendstop": "0", "Zthreeendstop": "0", "Zfourendstop": "0", "extencoder": "0", "extencodererrorstep": 500, "extencoderminstep": 10, "filamentsensor": "0", "filamentsensorextruder": 0, "filamentsensormaxdia": 2, "filamentsensormindia": 1.35, "filamentsensordia": 1.75, "filamentsensorlcd": "0", "filamentrunout": "0", "filamentrunoutdav": "0", "filamentrunoutpininverting": "0", "filamentrunoutpullup": "1", "filamentrunoutscript": "M600", "powerconsumption": "0", "dooropen": "0", "doorendstop": "0", "powercheck": "0", "powercheckendstop": "0", "caselight": "0", "caselightinvert": "0", "caselightdefault": "0", "caselightbrightness": 255, "eeprom": "1", "eepromsd": "0", "eepromchitchat": "1", "sdsupport": "1", "sdslow": "0", "sdextraslow": "0", "sddisableddetect": "0", "sddetectinverted": "0", "sdsetting": "0", "lcdlanguages": "de", "invertclickbutton": "0", "invertbackbutton": "0", "invertrotaryswitch": "0", "invertmenudirection": "0", "displays": 13, "nextion_port": 1, "nextionGFX": "0", "lcdprogressbar": 0, "lcdprogressbarbartime": 3, "lcdprogressbarmsgtime": 1, "lcdprogressbarmsgexpire": 0, "laserbeam": "0", "lasercontrol": 1, "laserfocus": "0", "laserraster": "0", "rfidmodule": "0", "rfidserial": 1, "rgbled": "0", "rgbwled": "0", "pca9632": "0", "neopixelled": "0", "neopixeltype": "NEO_GRB", "neopixelpixels": 16, "eventled": "0", "usemicrostep": "0", "Xmicrostep": 16, "Ymicrostep": 16, "Zmicrostep": 16, "Emicrostep": 16, "Xcurrent": 1000, "Ycurrent": 1000, "Zcurrent": 1000, "E0current": 1000, "E1current": 1000, "E2current": 1000, "E3current": 1000, "E4current": 1000, "E5current": 1000, "toshiba": "0", "jsonoutput": "0", "testmode": "0", "inchmodesupport": "0", "blockbuffersize": 32, "bufsize": 8, "nozzlecleanfeature": "0", "nozzlecleanstrokes": 12, "nozzlecleantriangle": 3, "nozzlecleanstart_x": 30, "nozzlecleanstart_y": 30, "nozzlecleanstart_z": 1, "nozzlecleanend_x": 100, "nozzlecleanend_y": 60, "nozzlecleanend_z": 1, "nozzlecleangoback": "1", "Xmotor": { "name": "X motor", "step": "ORIG_X_STEP_PIN", "dir": "ORIG_X_DIR_PIN", "enable": "ORIG_X_ENABLE_PIN" }, "Ymotor": { "name": "Y motor", "step": "ORIG_Y_STEP_PIN", "dir": "ORIG_Y_DIR_PIN", "enable": "ORIG_Y_ENABLE_PIN" }, "Zmotor": { "name": "Z motor", "step": "ORIG_Z_STEP_PIN", "dir": "ORIG_Z_DIR_PIN", "enable": "ORIG_Z_ENABLE_PIN" }, "X2motor": { "name": "Extruder 1", "step": "ORIG_E1_STEP_PIN", "dir": "ORIG_E1_DIR_PIN", "enable": "ORIG_E1_ENABLE_PIN" }, "Y2motor": { "name": "Extruder 1", "step": "ORIG_E1_STEP_PIN", "dir": "ORIG_E1_DIR_PIN", "enable": "ORIG_E1_ENABLE_PIN" }, "Z2motor": { "name": "Extruder 2", "step": "ORIG_E2_STEP_PIN", "dir": "ORIG_E2_DIR_PIN", "enable": "ORIG_E2_ENABLE_PIN" }, "Z3motor": { "name": "Extruder 2", "step": "ORIG_E2_STEP_PIN", "dir": "ORIG_E2_DIR_PIN", "enable": "ORIG_E2_ENABLE_PIN" }, "Z4motor": { "name": "Extruder 3", "step": "ORIG_E3_STEP_PIN", "dir": "ORIG_E3_DIR_PIN", "enable": "ORIG_E3_ENABLE_PIN" }, "E0motor": { "name": "Extruder 0", "step": "ORIG_E0_STEP_PIN", "dir": "ORIG_E0_DIR_PIN", "enable": "ORIG_E0_ENABLE_PIN" }, "E1motor": { "name": "Extruder 1", "step": "ORIG_E1_STEP_PIN", "dir": "ORIG_E1_DIR_PIN", "enable": "ORIG_E1_ENABLE_PIN" }, "E2motor": { "name": "Extruder 2", "step": "ORIG_E2_STEP_PIN", "dir": "ORIG_E2_DIR_PIN", "enable": "ORIG_E2_ENABLE_PIN" }, "E3motor": { "name": "Extruder 3", "step": "ORIG_E3_STEP_PIN", "dir": "ORIG_E3_DIR_PIN", "enable": "ORIG_E3_ENABLE_PIN" }, "E4motor": { "name": "Extruder 4", "step": "ORIG_E4_STEP_PIN", "dir": "ORIG_E4_DIR_PIN", "enable": "ORIG_E4_ENABLE_PIN" }, "E5motor": { "name": "Extruder 5", "step": "ORIG_E5_STEP_PIN", "dir": "ORIG_E5_DIR_PIN", "enable": "ORIG_E5_ENABLE_PIN" }, "heater0pin": "ORIG_HEATER_0_PIN", "heater1pin": "ORIG_HEATER_1_PIN", "heater2pin": "ORIG_HEATER_2_PIN", "heater3pin": "ORIG_HEATER_3_PIN", "heaterbedpin": "ORIG_HEATER_BED_PIN", "heaterchamberpin": "NoPin", "heatercoolerpin": "NoPin", "temp0pin": "ORIG_TEMP_0_PIN", "temp1pin": "ORIG_TEMP_1_PIN", "temp2pin": "ORIG_TEMP_2_PIN", "temp3pin": "ORIG_TEMP_3_PIN", "tempbedpin": "ORIG_TEMP_BED_PIN", "tempchamberpin": "NoPin", "tempcoolerpin": "NoPin", "Xminpin": "ORIG_X_MIN_PIN", "Xmaxpin": "ORIG_X_MAX_PIN", "Yminpin": "ORIG_Y_MIN_PIN", "Ymaxpin": "ORIG_Y_MAX_PIN", "Zminpin": "ORIG_Z_MIN_PIN", "Zmaxpin": "ORIG_Z_MAX_PIN", "Z2minpin": "NoPin", "Z2maxpin": "NoPin", "Z3minpin": "NoPin", "Z3maxpin": "NoPin", "Z4minpin": "NoPin", "Z4maxpin": "NoPin", "Zprobepin": "NoPin", "Eminpin": "NoPin", "fanpin": "ORIG_FAN0_PIN", "fan1pin": "ORIG_FAN1_PIN", "fan2pin": "ORIG_FAN2_PIN", "fan3pin": "ORIG_FAN3_PIN", "fan4pin": "ORIG_FAN4_PIN", "fan5pin": "ORIG_FAN5_PIN", "PSONpin": "ORIG_PS_ON_PIN", "beeperpin": "ORIG_BEEPER_PIN", "E0encoderpin": "NoPin", "E1encoderpin": "NoPin", "E2encoderpin": "NoPin", "E3encoderpin": "NoPin", "E4encoderpin": "NoPin", "E5encoderpin": "NoPin", "filamentsensorpin": "NoPin", "filrunoutpin": "NoPin", "filrunoutdavpin": "NoPin", "flowmeterpin": "NoPin", "laserpwrpin": "ORIG_LASER_PWR_PIN", "laserpwmpin": "ORIG_LASER_PWM_PIN", "laserperipheralspin": "NoPin", "laserperipheralsstatuspin": "NoPin", "cncrouterpin": "NoPin", "powerconsumptionpin": "NoPin", "doorpin": "NoPin", "powercheckpin": "NoPin", "caselightpin": "NoPin", "rgbledRpin": "NoPin", "rgbledGpin": "NoPin", "rgbledBpin": "NoPin", "rgbledWpin": "NoPin", "neopixelpin": "NoPin", "dhtdatapin": "NoPin", "END_DATA": 0 } ========== End configuration string ========== */

iosonopersia commented 7 years ago

@wext1, please, download again the firmware and reopen MK4duo.ino. It seems that old code has been mixed up with the new code... Are you sure having downloaded the 4.3.29 dev version?

iosonopersia commented 7 years ago

@wext1, you can share your configuration with us by saving it in a .txt file and then Drag-and-dropping it inside the textarea of your post.

wext1 commented 7 years ago

Hi,

okay now i downloaded the Firmware again, and now i get an other Error.

ERROR: In file included from sketch\MK4duo.h:138:0,

             from C:\Users\eowegs\Downloads\MK4duo_08-11-2017_121547\MK4duo\MK4duo.ino:288:

sketch\src/feature/bedlevel/bedlevel.h:68:18: error: 'matrix_3x3' does not name a type

       static matrix_3x3 matrix; // Transform to compensate for bed Level

i use an Arduino DUE with RADDS and 3 Z-Stepper.

wext1 commented 7 years ago

Configuration_Overall.txt

iosonopersia commented 7 years ago

@wext1, please, still a little thing to do. Can you delete the configuration from your initial post? This issue needs to be cleaned up before starting to dig into it... Please, leave only the issue description!

iosonopersia commented 7 years ago

@MagoKimbra , in src/feature/bedlevel/bedlevel.h , at line 42, in order to make it work,

#if ENABLED(AUTO_BED_LEVELING_LINEAR) || ENABLED(AUTO_BED_LEVELING_UBL)

should be replaced by this:

#if ABL_PLANAR || ENABLED(AUTO_BED_LEVELING_LINEAR) || ENABLED(AUTO_BED_LEVELING_UBL)

But then, the other errors related to Z_TWO_STEPPERS occur again...

MagoKimbra commented 7 years ago

Ok i fond the error..

In configuration_pins:

// Z2 axis pins
#if ENABLED(Z_TWO_STEPPER)
  #define Z2_STEP_PIN       ORIG_E1_STEP_PIN
  #define Z2_DIR_PIN        ORIG_E1_DIR_PIN
  #define Z2_ENABLE_PIN     ORIG_E1_ENABLE_PIN
  #define Z2_CS_PIN         ORIG_E1_CS_PIN
#endif

// Z3 axis pins
#if ENABLED(Z_THREE_STEPPER)
  #define Z3_STEP_PIN       ORIG_E2_STEP_PIN
  #define Z3_DIR_PIN        ORIG_E2_DIR_PIN
  #define Z3_ENABLE_PIN     ORIG_E2_ENABLE_PIN
#endif

// Z4 axis pins
#if ENABLED(Z_FOUR_STEPPER)
  #define Z4_STEP_PIN       ORIG_E3_STEP_PIN
  #define Z4_DIR_PIN        ORIG_E3_DIR_PIN
  #define Z4_ENABLE_PIN     ORIG_E3_ENABLE_PIN
#endif

Put in this mode in your file:

// Z2 axis pins
#if ENABLED(Z_TWO_STEPPER) || ENABLED(Z_THREE_STEPPER) || ENABLED(Z_FOUR_STEPPER)
  #define Z2_STEP_PIN       ORIG_E1_STEP_PIN
  #define Z2_DIR_PIN        ORIG_E1_DIR_PIN
  #define Z2_ENABLE_PIN     ORIG_E1_ENABLE_PIN
  #define Z2_CS_PIN         ORIG_E1_CS_PIN
#endif

// Z3 axis pins
#if ENABLED(Z_THREE_STEPPER) || ENABLED(Z_FOUR_STEPPER)
  #define Z3_STEP_PIN       ORIG_E2_STEP_PIN
  #define Z3_DIR_PIN        ORIG_E2_DIR_PIN
  #define Z3_ENABLE_PIN     ORIG_E2_ENABLE_PIN
#endif

// Z4 axis pins
#if ENABLED(Z_FOUR_STEPPER)
  #define Z4_STEP_PIN       ORIG_E3_STEP_PIN
  #define Z4_DIR_PIN        ORIG_E3_DIR_PIN
  #define Z4_ENABLE_PIN     ORIG_E3_ENABLE_PIN
#endif
iosonopersia commented 7 years ago

@wext1 now it should compile, try it out please!