From f73dfa5e95b7508e65a8185a2e54af3c77ccd2f0 Mon Sep 17 00:00:00 2001 From: Marcio Teixeira Date: Wed, 1 Nov 2023 13:09:11 -0600 Subject: [PATCH] Shrink binary size to allow uploading on Mini 2 --- .../CecropiaSilk_SingleExtruderAeroV2/Configuration.h | 4 ++-- .../CecropiaSilk_SingleExtruderAeroV2/Configuration_adv.h | 2 +- .../Configuration_summary.txt | 6 +++--- config/examples/build-config.js | 1 + 4 files changed, 7 insertions(+), 6 deletions(-) diff --git a/config/examples/AlephObjects/standard/Hibiscus_Mini2/CecropiaSilk_SingleExtruderAeroV2/Configuration.h b/config/examples/AlephObjects/standard/Hibiscus_Mini2/CecropiaSilk_SingleExtruderAeroV2/Configuration.h index 42666e907886..d64b54b4544f 100644 --- a/config/examples/AlephObjects/standard/Hibiscus_Mini2/CecropiaSilk_SingleExtruderAeroV2/Configuration.h +++ b/config/examples/AlephObjects/standard/Hibiscus_Mini2/CecropiaSilk_SingleExtruderAeroV2/Configuration.h @@ -842,7 +842,7 @@ #define PID_FUNCTIONAL_RANGE 10 // If the temperature difference between the target temperature and the actual temperature // is more than PID_FUNCTIONAL_RANGE then the PID will be shut off and the heater will be set to min/max. - #define PID_EDIT_MENU // <-- changed: Add PID editing to the "Advanced Settings" menu. (~700 bytes of flash) + //#define PID_EDIT_MENU // Add PID editing to the "Advanced Settings" menu. (~700 bytes of flash) #define PID_AUTOTUNE_MENU // <-- changed: Add PID auto-tuning to the "Advanced Settings" menu. (~250 bytes of flash) #endif @@ -2092,7 +2092,7 @@ /** * Enable the G26 Mesh Validation Pattern tool. */ - #define G26_MESH_VALIDATION // <-- changed + //#define G26_MESH_VALIDATION #if ENABLED(G26_MESH_VALIDATION) #define MESH_TEST_NOZZLE_SIZE 0.4 // (mm) Diameter of primary nozzle. #define MESH_TEST_LAYER_HEIGHT 0.2 // (mm) Default layer height for G26. diff --git a/config/examples/AlephObjects/standard/Hibiscus_Mini2/CecropiaSilk_SingleExtruderAeroV2/Configuration_adv.h b/config/examples/AlephObjects/standard/Hibiscus_Mini2/CecropiaSilk_SingleExtruderAeroV2/Configuration_adv.h index f37d1a73788d..80f87c851018 100644 --- a/config/examples/AlephObjects/standard/Hibiscus_Mini2/CecropiaSilk_SingleExtruderAeroV2/Configuration_adv.h +++ b/config/examples/AlephObjects/standard/Hibiscus_Mini2/CecropiaSilk_SingleExtruderAeroV2/Configuration_adv.h @@ -1992,7 +1992,7 @@ #define MARLIN_BRICKOUT // <-- changed #define MARLIN_INVADERS // <-- changed #define MARLIN_SNAKE // <-- changed - #define GAMES_EASTER_EGG // <-- changed: Add extra blank lines above the "Games" sub-menu + //#define GAMES_EASTER_EGG // Add extra blank lines above the "Games" sub-menu #endif // HAS_MARLINUI_U8GLIB diff --git a/config/examples/AlephObjects/standard/Hibiscus_Mini2/CecropiaSilk_SingleExtruderAeroV2/Configuration_summary.txt b/config/examples/AlephObjects/standard/Hibiscus_Mini2/CecropiaSilk_SingleExtruderAeroV2/Configuration_summary.txt index 933af62eac25..d84febaf0709 100644 --- a/config/examples/AlephObjects/standard/Hibiscus_Mini2/CecropiaSilk_SingleExtruderAeroV2/Configuration_summary.txt +++ b/config/examples/AlephObjects/standard/Hibiscus_Mini2/CecropiaSilk_SingleExtruderAeroV2/Configuration_summary.txt @@ -84,14 +84,14 @@ #define FIL_RUNOUT_ENABLED_DEFAULT false #define FIL_RUNOUT_PIN 62 #define G26_IN_START_GCODE_WORKAROUND -#define G26_MESH_VALIDATION +//#define G26_MESH_VALIDATION #define G29_FAILURE_COMMANDS "M117 Bed leveling failed.\nG0 Z10\nG0 E0\nM300 P25 S880\nM300 P50 S0\nM300 P25 S880\nM300 P50 S0\nM300 P25 S880\nG4 S1" #define G29_HALT_ON_FAILURE #define G29_MAX_RETRIES 2 #define G29_RECOVER_COMMANDS "M104 S170\nG28\nG0 X150 F9999\nG0 Z5 F6000\nG91\nM211 S0\nM400\nM906 Z600\nG0 Z-15 F500\nG0 Z5 F500\nM400\nG90\nM906 Z960\nM211 S1\nG28 Z0\nG28\nG12\nM109 R160\nM400\nM117 Probing bed" #define G29_RETRY_AND_RECOVER #define G29_SUCCESS_COMMANDS "M117 Probe successful" -#define GAMES_EASTER_EGG +//#define GAMES_EASTER_EGG #define GCODE_MACROS #define GRID_MAX_POINTS_X 2 #define GRID_MAX_POINTS_Y 2 @@ -147,7 +147,7 @@ #define PIDTEMP #define PIDTEMPBED #define PID_AUTOTUNE_MENU -#define PID_EDIT_MENU +//#define PID_EDIT_MENU #define PREHEAT_1_TEMP_HOTEND 200 #define PREVENT_COLD_EXTRUSION #define PRINTCOUNTER diff --git a/config/examples/build-config.js b/config/examples/build-config.js index 3e07c0185a48..136ee63d9cda 100644 --- a/config/examples/build-config.js +++ b/config/examples/build-config.js @@ -364,6 +364,7 @@ function make_config(PRINTER, TOOLHEAD) { MARLIN["MACHINE_UUID"] = C_STRING("e5502411-d46d-421d-ba3a-a20126d7930f") if (!USE_TOUCH_UI) { MARLIN["LIGHTWEIGHT_UI"] = true + USE_LESS_MEMORY = 2 } else { USE_REPRAP_LCD_DISPLAY = false USE_LESS_MEMORY = 1