mriscoc / Ender3V2S1

This is optimized firmware for Ender3 V2/S1 3D printers.
Other
2.65k stars 360 forks source link

Compiling error to use FIX_MOUNTED_PROBE #141

Closed pedrofalmeida closed 2 years ago

pedrofalmeida commented 2 years ago

Describe the bug I got an Ender 3v2 with a fixed probe, so I need to compile this firmware with some adjusts in the configuration file.

To Reproduce

  1. In Configuration.h comment #define PROBE_MANUALLY
  2. In Configuration.h uncomment #define FIX_MOUNTED_PROBE
  3. In Configuration.h uncomment #define Z_SAFE_HOMING
  4. While compiling in VSCode I got the following error: Compiling .pio\build\STM32F103RC_creality\src\src\lcd\e3v2\proui\dwinui.cpp.o *** [.pio\build\STM32F103RC_creality\src\src\inc\Warnings.cpp.o] Error 1 Marlin\src\lcd\e3v2\proui\dwin.cpp: In function 'void SetZOffset()': Marlin\src\lcd\e3v2\proui\dwin.cpp:2009:7: error: 'babystep' was not declared in this scope 2009 | babystep.accum = round(planner.settings.axis_steps_per_mm[Z_AXIS] * BABY_Z_VAR); | ^~~~~~~~ *** [.pio\build\STM32F103RC_creality\src\src\lcd\e3v2\proui\dwin.cpp.o] Error 1

Screenshots error_compiling_fix_mounted_probe

Version (please complete the following information): It works fine in Ender3V2S1-20220314, since that in every version I got this error. For reproduce I was using the branch version Ender3V2S1-Released

mriscoc commented 2 years ago

Please use the EZABL configuration files as templates https://github.com/mriscoc/Special_Configurations/releases/tag/EZABL

pedrofalmeida commented 2 years ago

Thank you @mriscoc! It works like a charm! :)

mriscoc commented 2 years ago

You are welcome

github-actions[bot] commented 1 year ago

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.