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

This commit is contained in:
Tanguy Pruvot 2021-08-06 22:51:10 +02:00 committed by GitHub
parent 526b6cdf5b
commit 9a8c9d4ed0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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) {