From 9ab4d6921d759e4694261b552dbadb5135d3b8ad Mon Sep 17 00:00:00 2001 From: Dimitris Mantzouranis Date: Thu, 25 Jan 2024 10:11:34 +0200 Subject: [PATCH] sn32: protect last eeprom sector when using efl --- platforms/chibios/chibios_config.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/platforms/chibios/chibios_config.h b/platforms/chibios/chibios_config.h index 08769171bd22..9ed010e9c7d1 100644 --- a/platforms/chibios/chibios_config.h +++ b/platforms/chibios/chibios_config.h @@ -192,4 +192,7 @@ #if defined(SN32F2) # define CPU_CLOCK SN32_HCLK +# ifndef WEAR_LEVELING_EFL_OMIT_LAST_SECTOR_COUNT +# define WEAR_LEVELING_EFL_OMIT_LAST_SECTOR_COUNT 1 +# endif #endif