From 83a60f15ff1e5fe37e076e4e3e7a62c28de8add8 Mon Sep 17 00:00:00 2001 From: Scott Lahteine Date: Tue, 3 Mar 2020 14:18:31 -0600 Subject: [PATCH] Fix EEPROM compile errors --- Marlin/src/module/configuration_store.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/Marlin/src/module/configuration_store.cpp b/Marlin/src/module/configuration_store.cpp index d44f63c680..3f44963ac3 100644 --- a/Marlin/src/module/configuration_store.cpp +++ b/Marlin/src/module/configuration_store.cpp @@ -1593,8 +1593,8 @@ void MarlinSettings::postprocess() { { _FIELD_TEST(planner_leveling_active); #if ENABLED(AUTO_BED_LEVELING_UBL) - bool &planner_leveling_active = planner.leveling_active; - uint8_t &ubl_storage_slot = ubl.storage_slot; + const bool &planner_leveling_active = planner.leveling_active; + const uint8_t &ubl_storage_slot = ubl.storage_slot; #else bool planner_leveling_active; uint8_t ubl_storage_slot; @@ -1636,7 +1636,7 @@ void MarlinSettings::postprocess() { { _FIELD_TEST(bltouch_last_written_mode); #if ENABLED(BLTOUCH) - bool &bltouch_last_written_mode = bltouch.last_written_mode; + const bool &bltouch_last_written_mode = bltouch.last_written_mode; #else bool bltouch_last_written_mode; #endif @@ -1747,7 +1747,7 @@ void MarlinSettings::postprocess() { { _FIELD_TEST(lpq_len); #if ENABLED(PID_EXTRUSION_SCALING) - int16_t &lpq_len = thermalManager.lpq_len; + const int16_t &lpq_len = thermalManager.lpq_len; #else int16_t lpq_len; #endif @@ -1799,7 +1799,7 @@ void MarlinSettings::postprocess() { { _FIELD_TEST(recovery_enabled); #if ENABLED(POWER_LOSS_RECOVERY) - bool &recovery_enabled = recovery.enabled; + const bool &recovery_enabled = recovery.enabled; #else bool recovery_enabled; #endif