Fix incorrect type on ubl_storage_slot (#17170)

This commit is contained in:
Karl Andersson 2020-03-16 00:03:10 +01:00 committed by GitHub
parent 695e014075
commit 85187290a7
Signed by: GitHub
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1531,10 +1531,10 @@ 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)
const bool &planner_leveling_active = planner.leveling_active; const bool &planner_leveling_active = planner.leveling_active;
const uint8_t &ubl_storage_slot = ubl.storage_slot; const int8_t &ubl_storage_slot = ubl.storage_slot;
#else #else
bool planner_leveling_active; bool planner_leveling_active;
uint8_t ubl_storage_slot; int8_t ubl_storage_slot;
#endif #endif
EEPROM_READ(planner_leveling_active); EEPROM_READ(planner_leveling_active);
EEPROM_READ(ubl_storage_slot); EEPROM_READ(ubl_storage_slot);