Skip to content

Commit

Permalink
🎨 Fix "'EEPROM' unused" warning (MarlinFirmware#22511)
Browse files Browse the repository at this point in the history
  • Loading branch information
tpruvot authored and mh-dm committed May 15, 2022
1 parent 34f74a4 commit c82c487
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Marlin/src/HAL/STM32/eeprom_flash.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,8 @@ size_t PersistentStore::capacity() { return MARLIN_EEPROM_SIZE; }

bool PersistentStore::access_start() {

EEPROM.begin(); // Avoid STM32 EEPROM.h warning (do nothing)

#if ENABLED(FLASH_EEPROM_LEVELING)

if (current_slot == -1 || eeprom_data_written) {
Expand Down

0 comments on commit c82c487

Please sign in to comment.