UBL no longer needs ubl_state

This commit is contained in:
Scott Lahteine
2017-10-13 21:56:27 -05:00
parent 8dd08425fd
commit 1344ca4b2f
5 changed files with 24 additions and 33 deletions

View File

@ -51,7 +51,7 @@ void GcodeSuite::M420() {
if (parser.seen('L')) {
#if ENABLED(EEPROM_SETTINGS)
const int8_t storage_slot = parser.has_value() ? parser.value_int() : ubl.state.storage_slot;
const int8_t storage_slot = parser.has_value() ? parser.value_int() : ubl.storage_slot;
const int16_t a = settings.calc_num_meshes();
if (!a) {
@ -66,7 +66,7 @@ void GcodeSuite::M420() {
}
settings.load_mesh(storage_slot);
ubl.state.storage_slot = storage_slot;
ubl.storage_slot = storage_slot;
#else
@ -80,7 +80,7 @@ void GcodeSuite::M420() {
if (parser.seen('L') || parser.seen('V')) {
ubl.display_map(0); // Currently only supports one map type
SERIAL_ECHOLNPAIR("ubl.mesh_is_valid = ", ubl.mesh_is_valid());
SERIAL_ECHOLNPAIR("ubl.state.storage_slot = ", ubl.state.storage_slot);
SERIAL_ECHOLNPAIR("ubl.storage_slot = ", ubl.storage_slot);
}
#endif // AUTO_BED_LEVELING_UBL