Skip to content

Commit

Permalink
🎨 Fix "'EEPROM' unused" warning (#22511)
Browse files Browse the repository at this point in the history
  • Loading branch information
tpruvot authored and thinkyhead committed Aug 9, 2021
1 parent 4e54fa2 commit 1bee38a
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 1bee38a

Please sign in to comment.