Browse Source

Fix FYSETC S6 I2C EEPROM size (#20340)

Both V1.2 and V2.0 boards have a 24LC16, which is a 2kB EEPROM.

Co-authored-by: PingWin <kirill@shashlov.ru>
Co-authored-by: Jason Smith <jason.inet@gmail.com>
LinFor 4 years ago
parent
commit
7a6b742d12
No account linked to committer's email address

+ 2
- 2
Marlin/src/pins/pins.h View File

582
   #include "stm32f4/pins_VAKE403D.h"            // STM32F4
582
   #include "stm32f4/pins_VAKE403D.h"            // STM32F4
583
 #elif MB(FYSETC_S6)
583
 #elif MB(FYSETC_S6)
584
   #include "stm32f4/pins_FYSETC_S6.h"           // STM32F4                                env:FYSETC_S6
584
   #include "stm32f4/pins_FYSETC_S6.h"           // STM32F4                                env:FYSETC_S6
585
+#elif MB(FYSETC_S6_V2_0)
586
+  #include "stm32f4/pins_FYSETC_S6_V2_0.h"      // STM32F4                                env:FYSETC_S6
585
 #elif MB(FLYF407ZG)
587
 #elif MB(FLYF407ZG)
586
   #include "stm32f4/pins_FLYF407ZG.h"           // STM32F4                                env:FLYF407ZG
588
   #include "stm32f4/pins_FLYF407ZG.h"           // STM32F4                                env:FLYF407ZG
587
 #elif MB(MKS_ROBIN2)
589
 #elif MB(MKS_ROBIN2)
588
   #include "stm32f4/pins_MKS_ROBIN2.h"          // STM32F4                                env:MKS_ROBIN2
590
   #include "stm32f4/pins_MKS_ROBIN2.h"          // STM32F4                                env:MKS_ROBIN2
589
-#elif MB(FYSETC_S6_V2_0)
590
-  #include "stm32f4/pins_FYSETC_S6_V2_0.h"      // STM32F4                                env:FYSETC_S6
591
 
591
 
592
 //
592
 //
593
 // ARM Cortex M7
593
 // ARM Cortex M7

+ 1
- 2
Marlin/src/pins/stm32f4/pins_FYSETC_S6.h View File

42
 //
42
 //
43
 #if NO_EEPROM_SELECTED
43
 #if NO_EEPROM_SELECTED
44
   #define FLASH_EEPROM_EMULATION
44
   #define FLASH_EEPROM_EMULATION
45
-  //#define SRAM_EEPROM_EMULATION
46
   //#define I2C_EEPROM
45
   //#define I2C_EEPROM
47
 #endif
46
 #endif
48
 
47
 
51
   // 128 kB sector allocated for EEPROM emulation.
50
   // 128 kB sector allocated for EEPROM emulation.
52
   #define FLASH_EEPROM_LEVELING
51
   #define FLASH_EEPROM_LEVELING
53
 #elif ENABLED(I2C_EEPROM)
52
 #elif ENABLED(I2C_EEPROM)
54
-  #define MARLIN_EEPROM_SIZE              0x1000  // 4KB
53
+  #define MARLIN_EEPROM_SIZE              0x0800  // 2KB
55
 #endif
54
 #endif
56
 
55
 
57
 //
56
 //

+ 0
- 1
Marlin/src/pins/stm32f4/pins_FYSETC_S6_V2_0.h View File

29
 #if NO_EEPROM_SELECTED
29
 #if NO_EEPROM_SELECTED
30
   #undef NO_EEPROM_SELECTED
30
   #undef NO_EEPROM_SELECTED
31
   //#define FLASH_EEPROM_EMULATION
31
   //#define FLASH_EEPROM_EMULATION
32
-  //#define SRAM_EEPROM_EMULATION
33
   #define I2C_EEPROM
32
   #define I2C_EEPROM
34
 #endif
33
 #endif
35
 
34
 

Loading…
Cancel
Save