From c515bfb5fbb860d13daea84dfde6cb9d54662d20 Mon Sep 17 00:00:00 2001
From: 7FM <41307817+7FM@users.noreply.github.com>
Date: Sun, 6 Jun 2021 09:56:24 +0200
Subject: [PATCH] =?UTF-8?q?=F0=9F=91=BD=EF=B8=8F=20Include=20<EEPROM.h>=20?=
 =?UTF-8?q?in=20STM32=20(for=20now)=20(#22054)?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

---
 Marlin/src/HAL/STM32/eeprom_flash.cpp | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/Marlin/src/HAL/STM32/eeprom_flash.cpp b/Marlin/src/HAL/STM32/eeprom_flash.cpp
index 5862090f1ba..3d06b172bd7 100644
--- a/Marlin/src/HAL/STM32/eeprom_flash.cpp
+++ b/Marlin/src/HAL/STM32/eeprom_flash.cpp
@@ -28,6 +28,10 @@
 
 #include "../shared/eeprom_api.h"
 
+// Better: "utility/stm32_eeprom.h", but only after updating stm32duino to 2.0.0
+// Use EEPROM.h for compatibility, for now.
+#include <EEPROM.h> 
+
 /**
  * The STM32 HAL supports chips that deal with "pages" and some with "sectors" and some that
  * even have multiple "banks" of flash.