From 0e1b62e0949a1a448090529bb957bd041ddaa30a Mon Sep 17 00:00:00 2001 From: InsanityAutomation Date: Sun, 23 Oct 2022 12:35:46 -0400 Subject: [PATCH] Reduce ram and SPI speed --- Marlin/Configuration.h | 3 ++- Marlin/Configuration_adv.h | 2 +- Marlin/src/module/settings.cpp | 2 +- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/Marlin/Configuration.h b/Marlin/Configuration.h index 9a326fddfa..d97008061f 100644 --- a/Marlin/Configuration.h +++ b/Marlin/Configuration.h @@ -30,7 +30,7 @@ #define tallVersion -//#define ABL_Bilinear +#define ABL_Bilinear /* * Enables a filament sensor plugged into the laser pin. Disables the laser */ @@ -2685,6 +2685,7 @@ * SD Card support is disabled by default. If your controller has an SD slot, * you must uncomment the following option or it won't work. */ +#define SD_SPI_SPEED SPI_HALF_SPEED #define SDSUPPORT /** diff --git a/Marlin/Configuration_adv.h b/Marlin/Configuration_adv.h index 29df2eeb4e..8e13c15af7 100644 --- a/Marlin/Configuration_adv.h +++ b/Marlin/Configuration_adv.h @@ -1610,7 +1610,7 @@ // Allow international symbols in long filenames. To display correctly, the // LCD's font must contain the characters. Check your selected LCD language. - //#define UTF_FILENAME_SUPPORT + #define UTF_FILENAME_SUPPORT #define LONG_FILENAME_HOST_SUPPORT // Get the long filename of a file/folder with 'M33 ' and list long filenames with 'M20 L' //#define LONG_FILENAME_WRITE_SUPPORT // Create / delete files with long filenames via M28, M30, and Binary Transfer Protocol diff --git a/Marlin/src/module/settings.cpp b/Marlin/src/module/settings.cpp index 0587c91335..d164054d97 100644 --- a/Marlin/src/module/settings.cpp +++ b/Marlin/src/module/settings.cpp @@ -3231,7 +3231,7 @@ void MarlinSettings::reset() { #if ENABLED(DISTINCT_E_FACTORS) constexpr float linAdvanceK[] = ADVANCE_K; EXTRUDER_LOOP() { - const float a = linAdvanceK[_MAX(e, COUNT(linAdvanceK) - 1)]; + const float a = linAdvanceK[_MAX(e, (int8_t)COUNT(linAdvanceK) - 1)]; planner.extruder_advance_K[e] = a; TERN_(ADVANCE_K_EXTRA, other_extruder_advance_K[e] = a); }