If the line in Configuration.h to ENABLE_AUTO_BED_LEVELING is commented out, the program won't compile because of errors in Configuration_Store.cpp. In the latter program, the references to bed_level_probe_offset are unresolved.
The proper way to handle conditional use of variables in Configuration_Store is to use #ifdef...#else...#endif constructs, where the #else block substitutes dummy variables for the variables that would have been used. By doing this, the overall structure of the EEPROM data is maintained consistent. See [(https://github.com/MarlinFirmware/Marlin/issues/2968)]
If the line in Configuration.h to ENABLE_AUTO_BED_LEVELING is commented out, the program won't compile because of errors in Configuration_Store.cpp. In the latter program, the references to bed_level_probe_offset are unresolved. The proper way to handle conditional use of variables in Configuration_Store is to use #ifdef...#else...#endif constructs, where the #else block substitutes dummy variables for the variables that would have been used. By doing this, the overall structure of the EEPROM data is maintained consistent. See [(https://github.com/MarlinFirmware/Marlin/issues/2968)]