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,12 +582,12 @@
582 582
   #include "stm32f4/pins_VAKE403D.h"            // STM32F4
583 583
 #elif MB(FYSETC_S6)
584 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 587
 #elif MB(FLYF407ZG)
586 588
   #include "stm32f4/pins_FLYF407ZG.h"           // STM32F4                                env:FLYF407ZG
587 589
 #elif MB(MKS_ROBIN2)
588 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 593
 // ARM Cortex M7

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

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

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

@@ -29,7 +29,6 @@
29 29
 #if NO_EEPROM_SELECTED
30 30
   #undef NO_EEPROM_SELECTED
31 31
   //#define FLASH_EEPROM_EMULATION
32
-  //#define SRAM_EEPROM_EMULATION
33 32
   #define I2C_EEPROM
34 33
 #endif
35 34
 

Loading…
Cancel
Save