|
@@ -1593,8 +1593,8 @@ void MarlinSettings::postprocess() {
|
1593
|
1593
|
{
|
1594
|
1594
|
_FIELD_TEST(planner_leveling_active);
|
1595
|
1595
|
#if ENABLED(AUTO_BED_LEVELING_UBL)
|
1596
|
|
- bool &planner_leveling_active = planner.leveling_active;
|
1597
|
|
- uint8_t &ubl_storage_slot = ubl.storage_slot;
|
|
1596
|
+ const bool &planner_leveling_active = planner.leveling_active;
|
|
1597
|
+ const uint8_t &ubl_storage_slot = ubl.storage_slot;
|
1598
|
1598
|
#else
|
1599
|
1599
|
bool planner_leveling_active;
|
1600
|
1600
|
uint8_t ubl_storage_slot;
|
|
@@ -1636,7 +1636,7 @@ void MarlinSettings::postprocess() {
|
1636
|
1636
|
{
|
1637
|
1637
|
_FIELD_TEST(bltouch_last_written_mode);
|
1638
|
1638
|
#if ENABLED(BLTOUCH)
|
1639
|
|
- bool &bltouch_last_written_mode = bltouch.last_written_mode;
|
|
1639
|
+ const bool &bltouch_last_written_mode = bltouch.last_written_mode;
|
1640
|
1640
|
#else
|
1641
|
1641
|
bool bltouch_last_written_mode;
|
1642
|
1642
|
#endif
|
|
@@ -1747,7 +1747,7 @@ void MarlinSettings::postprocess() {
|
1747
|
1747
|
{
|
1748
|
1748
|
_FIELD_TEST(lpq_len);
|
1749
|
1749
|
#if ENABLED(PID_EXTRUSION_SCALING)
|
1750
|
|
- int16_t &lpq_len = thermalManager.lpq_len;
|
|
1750
|
+ const int16_t &lpq_len = thermalManager.lpq_len;
|
1751
|
1751
|
#else
|
1752
|
1752
|
int16_t lpq_len;
|
1753
|
1753
|
#endif
|
|
@@ -1799,7 +1799,7 @@ void MarlinSettings::postprocess() {
|
1799
|
1799
|
{
|
1800
|
1800
|
_FIELD_TEST(recovery_enabled);
|
1801
|
1801
|
#if ENABLED(POWER_LOSS_RECOVERY)
|
1802
|
|
- bool &recovery_enabled = recovery.enabled;
|
|
1802
|
+ const bool &recovery_enabled = recovery.enabled;
|
1803
|
1803
|
#else
|
1804
|
1804
|
bool recovery_enabled;
|
1805
|
1805
|
#endif
|