Printrbot / Marlin

Fork of Marlin for the Printrbot
87 stars 59 forks source link

to turn off ENABLE_AUTO_BED_LEVELING, mods are needed in Configuration_Store.cpp #17

Open RetireeJay46 opened 8 years ago

RetireeJay46 commented 8 years ago

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)]