Skip to content

Commit

Permalink
Fix incorrect type on ubl_storage_slot (MarlinFirmware#17170)
Browse files Browse the repository at this point in the history
  • Loading branch information
ktand authored and mathom committed Apr 16, 2020
1 parent b21b6e6 commit 79183c9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Marlin/src/module/configuration_store.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1531,10 +1531,10 @@ void MarlinSettings::postprocess() {
_FIELD_TEST(planner_leveling_active);
#if ENABLED(AUTO_BED_LEVELING_UBL)
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
bool planner_leveling_active;
uint8_t ubl_storage_slot;
int8_t ubl_storage_slot;
#endif
EEPROM_READ(planner_leveling_active);
EEPROM_READ(ubl_storage_slot);
Expand Down

0 comments on commit 79183c9

Please sign in to comment.