Skip to content

Commit 1bee38a

Browse files
tpruvotthinkyhead
authored andcommitted
🎨 Fix "'EEPROM' unused" warning (#22511)
1 parent 4e54fa2 commit 1bee38a

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Marlin/src/HAL/STM32/eeprom_flash.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,8 @@ size_t PersistentStore::capacity() { return MARLIN_EEPROM_SIZE; }
104104

105105
bool PersistentStore::access_start() {
106106

107+
EEPROM.begin(); // Avoid STM32 EEPROM.h warning (do nothing)
108+
107109
#if ENABLED(FLASH_EEPROM_LEVELING)
108110

109111
if (current_slot == -1 || eeprom_data_written) {

0 commit comments

Comments
 (0)