Useful or not, from you.
Marlin error: 'X_HOME_BUMP_MM' was not declared in this scope

Bug Description

Hi, I'm tring to compile Marlin 2.0.5.3 with Anet A8 configuration files, but I'm having this error:

Compiling .pio\build\sanguino1284p\src\src\module\scara.cpp.o
Marlin\src\module\motion.cpp:77:71: error: 'X_HOME_BUMP_MM' was not declared in this scope
 #define XYZ_CONSTS(T, NAME, OPT) const PROGMEM XYZval<T> NAME##_P = { X_##OPT, Y_##OPT, Z_##OPT }
                                                                       ^
Marlin\src\module\motion.cpp:83:1: note: in expansion of macro 'XYZ_CONSTS'
 XYZ_CONSTS(float, home_bump_mm,   HOME_BUMP_MM);
 ^
Marlin\src\module\motion.cpp:77:80: error: 'Y_HOME_BUMP_MM' was not declared in this scope
 #define XYZ_CONSTS(T, NAME, OPT) const PROGMEM XYZval<T> NAME##_P = { X_##OPT, Y_##OPT, Z_##OPT }
                                                                                ^
Marlin\src\module\motion.cpp:83:1: note: in expansion of macro 'XYZ_CONSTS'
 XYZ_CONSTS(float, home_bump_mm,   HOME_BUMP_MM);
 ^
Marlin\src\module\motion.cpp:77:89: error: 'Z_HOME_BUMP_MM' was not declared in this scope
 #define XYZ_CONSTS(T, NAME, OPT) const PROGMEM XYZval<T> NAME##_P = { X_##OPT, Y_##OPT, Z_##OPT }
                                                                                         ^
Marlin\src\module\motion.cpp:83:1: note: in expansion of macro 'XYZ_CONSTS'
 XYZ_CONSTS(float, home_bump_mm,   HOME_BUMP_MM);
 ^
*** [.pio\build\sanguino1284p\src\src\module\motion.cpp.o] Error 1

My Configurations

Marlin.zip

Steps to Reproduce

<!-- Please describe the steps needed to reproduce the issue -->

  1. Open Visual Studio Code
  2. Open folder --> Marlin-2.0.x
  3. Go to "Auto Build Marlin" --> Build
That's a useful answer
Without any help

All you do is take the following lines in your Configuration_adv.h

#define X_HOME_BUMP_MM 5
#define Y_HOME_BUMP_MM 5
#define Z_HOME_BUMP_MM 2

And change it into one new line

#define HOMING_BUMP_MM { 5, 5, 2 } // (mm) Backoff from endstops after first bump

Or the other way around if your trying to run a new config on an older marlin. Its no big deal.