Skip to content

Commit

Permalink
Shrink binary size to allow uploading on Mini 2
Browse files Browse the repository at this point in the history
  • Loading branch information
marciot committed Nov 1, 2023
1 parent 7b37357 commit f73dfa5
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down Expand Up @@ -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.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down
1 change: 1 addition & 0 deletions config/examples/build-config.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit f73dfa5

Please sign in to comment.