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 ptoal committed Dec 16, 2021
1 parent 8805ba9 commit bbcc7f6
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 bbcc7f6

Please sign in to comment.