Browse Source

🎨 Fix "'EEPROM' unused" warning (#22511)

Tanguy Pruvot 4 years ago
parent
commit
9a8c9d4ed0
No account linked to committer's email address
1 changed files with 2 additions and 0 deletions
  1. 2
    0
      Marlin/src/HAL/STM32/eeprom_flash.cpp

+ 2
- 0
Marlin/src/HAL/STM32/eeprom_flash.cpp View File

@@ -104,6 +104,8 @@ size_t PersistentStore::capacity() { return MARLIN_EEPROM_SIZE; }
104 104
 
105 105
 bool PersistentStore::access_start() {
106 106
 
107
+  EEPROM.begin(); // Avoid STM32 EEPROM.h warning (do nothing)
108
+
107 109
   #if ENABLED(FLASH_EEPROM_LEVELING)
108 110
 
109 111
     if (current_slot == -1 || eeprom_data_written) {

Loading…
Cancel
Save