Skip to content

Commit

Permalink
🐛 Protect EEPROM bytes 916-926
Browse files Browse the repository at this point in the history
Followup to #26729

Ender-3S1 STM32F401 Bootloader
  • Loading branch information
thinkyhead committed Jan 27, 2024
1 parent ce8535f commit ebea672
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Marlin/src/HAL/shared/eeprom_api.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 2 additions & 0 deletions Marlin/src/pins/stm32f4/pins_CREALITY_V24S1_301F4.h
Original file line number Diff line number Diff line change
Expand Up @@ -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"

0 comments on commit ebea672

Please sign in to comment.