From ebea672240ba49067194e9a6959ba2604da2d4c2 Mon Sep 17 00:00:00 2001 From: Scott Lahteine Date: Sat, 27 Jan 2024 11:45:54 -0600 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20Protect=20EEPROM=20bytes=20916-9?= =?UTF-8?q?26?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Followup to #26729 Ender-3S1 STM32F401 Bootloader --- Marlin/src/HAL/shared/eeprom_api.h | 4 ++-- Marlin/src/pins/stm32f4/pins_CREALITY_V24S1_301F4.h | 2 ++ 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/Marlin/src/HAL/shared/eeprom_api.h b/Marlin/src/HAL/shared/eeprom_api.h index 763271b42d84..33d80695db52 100644 --- a/Marlin/src/HAL/shared/eeprom_api.h +++ b/Marlin/src/HAL/shared/eeprom_api.h @@ -26,8 +26,8 @@ #include "../../libs/crc16.h" -// For testing. Define with -DEEPROM_EXCL_ZONE=919,926 in INI files. -//#define EEPROM_EXCL_ZONE 919,926 // Test a range +// For testing. Define with -DEEPROM_EXCL_ZONE=916,926 in INI files. +//#define EEPROM_EXCL_ZONE 916,926 // Test a range //#define EEPROM_EXCL_ZONE 333 // Test a single byte #ifdef EEPROM_EXCL_ZONE diff --git a/Marlin/src/pins/stm32f4/pins_CREALITY_V24S1_301F4.h b/Marlin/src/pins/stm32f4/pins_CREALITY_V24S1_301F4.h index 32f70a371540..fa524464e386 100644 --- a/Marlin/src/pins/stm32f4/pins_CREALITY_V24S1_301F4.h +++ b/Marlin/src/pins/stm32f4/pins_CREALITY_V24S1_301F4.h @@ -35,4 +35,6 @@ #define DISABLE_DEBUG false // DISABLE_(DEBUG|JTAG) is not supported for STM32F4. #define ALLOW_STM32F4 +#define EEPROM_EXCL_ZONE 916,926 // Ender-3S1 STM32F401 Bootloader EEPROM exclusion zone + #include "../stm32f1/pins_CREALITY_V24S1_301.h"