Fix EEPROM compile errors
This commit is contained in:
parent
c083728e4c
commit
83a60f15ff
1 changed files with 5 additions and 5 deletions
|
@ -1593,8 +1593,8 @@ void MarlinSettings::postprocess() {
|
||||||
{
|
{
|
||||||
_FIELD_TEST(planner_leveling_active);
|
_FIELD_TEST(planner_leveling_active);
|
||||||
#if ENABLED(AUTO_BED_LEVELING_UBL)
|
#if ENABLED(AUTO_BED_LEVELING_UBL)
|
||||||
bool &planner_leveling_active = planner.leveling_active;
|
const bool &planner_leveling_active = planner.leveling_active;
|
||||||
uint8_t &ubl_storage_slot = ubl.storage_slot;
|
const uint8_t &ubl_storage_slot = ubl.storage_slot;
|
||||||
#else
|
#else
|
||||||
bool planner_leveling_active;
|
bool planner_leveling_active;
|
||||||
uint8_t ubl_storage_slot;
|
uint8_t ubl_storage_slot;
|
||||||
|
@ -1636,7 +1636,7 @@ void MarlinSettings::postprocess() {
|
||||||
{
|
{
|
||||||
_FIELD_TEST(bltouch_last_written_mode);
|
_FIELD_TEST(bltouch_last_written_mode);
|
||||||
#if ENABLED(BLTOUCH)
|
#if ENABLED(BLTOUCH)
|
||||||
bool &bltouch_last_written_mode = bltouch.last_written_mode;
|
const bool &bltouch_last_written_mode = bltouch.last_written_mode;
|
||||||
#else
|
#else
|
||||||
bool bltouch_last_written_mode;
|
bool bltouch_last_written_mode;
|
||||||
#endif
|
#endif
|
||||||
|
@ -1747,7 +1747,7 @@ void MarlinSettings::postprocess() {
|
||||||
{
|
{
|
||||||
_FIELD_TEST(lpq_len);
|
_FIELD_TEST(lpq_len);
|
||||||
#if ENABLED(PID_EXTRUSION_SCALING)
|
#if ENABLED(PID_EXTRUSION_SCALING)
|
||||||
int16_t &lpq_len = thermalManager.lpq_len;
|
const int16_t &lpq_len = thermalManager.lpq_len;
|
||||||
#else
|
#else
|
||||||
int16_t lpq_len;
|
int16_t lpq_len;
|
||||||
#endif
|
#endif
|
||||||
|
@ -1799,7 +1799,7 @@ void MarlinSettings::postprocess() {
|
||||||
{
|
{
|
||||||
_FIELD_TEST(recovery_enabled);
|
_FIELD_TEST(recovery_enabled);
|
||||||
#if ENABLED(POWER_LOSS_RECOVERY)
|
#if ENABLED(POWER_LOSS_RECOVERY)
|
||||||
bool &recovery_enabled = recovery.enabled;
|
const bool &recovery_enabled = recovery.enabled;
|
||||||
#else
|
#else
|
||||||
bool recovery_enabled;
|
bool recovery_enabled;
|
||||||
#endif
|
#endif
|
||||||
|
|
Reference in a new issue