🎨 Tweak pins, comment formatting

This commit is contained in:
Scott Lahteine 2021-08-29 20:54:51 -05:00 committed by Scott Lahteine
parent 99028376e6
commit 8916b05cb4
2 changed files with 33 additions and 29 deletions

View File

@ -2397,13 +2397,15 @@ void MarlinSettings::postprocess() {
UNUSED(s); UNUSED(s);
} }
const uint16_t MarlinSettings::meshes_end = persistentStore.capacity() - 129; // 128 (+1 because of the change to capacity rather than last valid address) // 128 (+1 because of the change to capacity rather than last valid address)
// is a placeholder for the size of the MAT; the MAT will always // is a placeholder for the size of the MAT; the MAT will always
// live at the very end of the eeprom // live at the very end of the eeprom
const uint16_t MarlinSettings::meshes_end = persistentStore.capacity() - 129;
uint16_t MarlinSettings::meshes_start_index() { uint16_t MarlinSettings::meshes_start_index() {
return (datasize() + EEPROM_OFFSET + 32) & 0xFFF8; // Pad the end of configuration data so it can float up // Pad the end of configuration data so it can float up
// or down a little bit without disrupting the mesh data // or down a little bit without disrupting the mesh data
return (datasize() + EEPROM_OFFSET + 32) & 0xFFF8;
} }
#define MESH_STORE_SIZE sizeof(TERN(OPTIMIZED_MESH_STORAGE, mesh_store_t, ubl.z_values)) #define MESH_STORE_SIZE sizeof(TERN(OPTIMIZED_MESH_STORAGE, mesh_store_t, ubl.z_values))

View File

@ -154,9 +154,7 @@
#define SDIO_SUPPORT #define SDIO_SUPPORT
#define NO_SD_HOST_DRIVE // This board's SD is only seen by the printer #define NO_SD_HOST_DRIVE // This board's SD is only seen by the printer
#if ENABLED(CR10_STOCKDISPLAY) && NONE(RET6_12864_LCD, VET6_12864_LCD) #if ENABLED(CR10_STOCKDISPLAY)
#error "Define RET6_12864_LCD or VET6_12864_LCD to select pins for CR10_STOCKDISPLAY with the Creality V4 controller."
#endif
#if ENABLED(RET6_12864_LCD) #if ENABLED(RET6_12864_LCD)
@ -184,6 +182,10 @@
#define BTN_EN1 PB10 #define BTN_EN1 PB10
#define BTN_EN2 PA6 #define BTN_EN2 PA6
#else
#error "Define RET6_12864_LCD or VET6_12864_LCD to select pins for CR10_STOCKDISPLAY with the Creality V4 controller."
#endif
#elif EITHER(DWIN_CREALITY_LCD, IS_DWIN_MARLINUI) #elif EITHER(DWIN_CREALITY_LCD, IS_DWIN_MARLINUI)
// RET6 DWIN ENCODER LCD // RET6 DWIN ENCODER LCD