Skip to content

Commit 3cc1af9

Browse files
committed
Updated some configuration to save space. Also realised I never had optiboot installed but was using the builds for it!
1 parent 29da21d commit 3cc1af9

File tree

4 files changed

+14
-14
lines changed

4 files changed

+14
-14
lines changed

Marlin/Configuration.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -835,7 +835,7 @@
835835
// is more than PID_FUNCTIONAL_RANGE then the PID will be shut off and the heater will be set to min/max.
836836

837837
//#define PID_EDIT_MENU // Add PID editing to the "Advanced Settings" menu. (~700 bytes of flash)
838-
#define PID_AUTOTUNE_MENU // Add PID auto-tuning to the "Advanced Settings" menu. (~250 bytes of flash)
838+
//#define PID_AUTOTUNE_MENU // Add PID auto-tuning to the "Advanced Settings" menu. (~250 bytes of flash)
839839
#endif
840840

841841
// @section safety
@@ -1545,7 +1545,7 @@
15451545
* | [-] |
15461546
* O-- FRONT --+
15471547
*/
1548-
#define NOZZLE_TO_PROBE_OFFSET { -15, -50, -8.5 }
1548+
#define NOZZLE_TO_PROBE_OFFSET { -15, -50, -8.4 }
15491549

15501550
// Enable and set to use a specific tool for probing. Disable to allow any tool.
15511551
#define PROBING_TOOL 0
@@ -2325,7 +2325,7 @@
23252325
*/
23262326
#define EEPROM_SETTINGS // Persistent storage with M500 and M501
23272327
//#define DISABLE_M503 // Saves ~2700 bytes of flash. Disable for release!
2328-
#define EEPROM_CHITCHAT // Give feedback on EEPROM commands. Disable to save PROGMEM.
2328+
//#define EEPROM_CHITCHAT // Give feedback on EEPROM commands. Disable to save PROGMEM.
23292329
#define EEPROM_BOOT_SILENT // Keep M503 quiet and only give errors during first load
23302330
#if ENABLED(EEPROM_SETTINGS)
23312331
#define EEPROM_AUTO_INIT // Init EEPROM automatically on any errors.

Marlin/Configuration_adv.h

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1958,10 +1958,10 @@
19581958
*/
19591959
//#define STATUS_COMBINE_HEATERS // Use combined heater images instead of separate ones
19601960
//#define STATUS_HOTEND_NUMBERLESS // Use plain hotend icons instead of numbered ones (with 2+ hotends)
1961-
#define STATUS_HOTEND_INVERTED // Show solid nozzle bitmaps when heating (Requires STATUS_HOTEND_ANIM for numbered hotends)
1962-
#define STATUS_HOTEND_ANIM // Use a second bitmap to indicate hotend heating
1963-
#define STATUS_BED_ANIM // Use a second bitmap to indicate bed heating
1964-
#define STATUS_CHAMBER_ANIM // Use a second bitmap to indicate chamber heating
1961+
//#define STATUS_HOTEND_INVERTED // Show solid nozzle bitmaps when heating (Requires STATUS_HOTEND_ANIM for numbered hotends)
1962+
//#define STATUS_HOTEND_ANIM // Use a second bitmap to indicate hotend heating
1963+
//#define STATUS_BED_ANIM // Use a second bitmap to indicate bed heating
1964+
//#define STATUS_CHAMBER_ANIM // Use a second bitmap to indicate chamber heating
19651965
//#define STATUS_CUTTER_ANIM // Use a second bitmap to indicate spindle / laser active
19661966
//#define STATUS_COOLER_ANIM // Use a second bitmap to indicate laser cooling
19671967
//#define STATUS_FLOWMETER_ANIM // Use multiple bitmaps to indicate coolant flow
@@ -2541,7 +2541,7 @@
25412541

25422542
// The ASCII buffer for serial input
25432543
#define MAX_CMD_SIZE 96
2544-
#define BUFSIZE 4
2544+
#define BUFSIZE 16
25452545

25462546
// Transmission to Host Buffer Size
25472547
// To save 386 bytes of flash (and TX_BUFFER_SIZE+3 bytes of RAM) set to 0.
@@ -2550,13 +2550,13 @@
25502550
// For debug-echo: 128 bytes for the optimal speed.
25512551
// Other output doesn't need to be that speedy.
25522552
// :[0, 2, 4, 8, 16, 32, 64, 128, 256]
2553-
#define TX_BUFFER_SIZE 0
2553+
#define TX_BUFFER_SIZE 64
25542554

25552555
// Host Receive Buffer Size
25562556
// Without XON/XOFF flow control (see SERIAL_XON_XOFF below) 32 bytes should be enough.
25572557
// To use flow control, set this buffer size to at least 1024 bytes.
25582558
// :[0, 2, 4, 8, 16, 32, 64, 128, 256, 512, 1024, 2048]
2559-
//#define RX_BUFFER_SIZE 1024
2559+
#define RX_BUFFER_SIZE 1024
25602560

25612561
#if RX_BUFFER_SIZE >= 1024
25622562
// Enable to have the controller send XON/XOFF control characters to
@@ -2588,7 +2588,7 @@
25882588
* Currently handles M108, M112, M410, M876
25892589
* NOTE: Not yet implemented for all platforms.
25902590
*/
2591-
//#define EMERGENCY_PARSER
2591+
#define EMERGENCY_PARSER
25922592

25932593
/**
25942594
* Realtime Reporting (requires EMERGENCY_PARSER)
@@ -2617,7 +2617,7 @@
26172617
//#define NO_TIMEOUTS 1000 // Milliseconds
26182618

26192619
// Some clients will have this feature soon. This could make the NO_TIMEOUTS unnecessary.
2620-
//#define ADVANCED_OK
2620+
#define ADVANCED_OK
26212621

26222622
// Printrun may have trouble receiving long strings all at once.
26232623
// This option inserts short delays between lines of serial output.

Marlin/src/pins/pins.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -371,7 +371,7 @@
371371
#elif MB(MELZI)
372372
#include "sanguino/pins_MELZI.h" // ATmega644P, ATmega1284P env:sanguino1284p_optimized env:sanguino1284p env:sanguino644p
373373
#elif MB(MELZI_V2)
374-
#include "sanguino/pins_MELZI_V2.h" // ATmega644P, ATmega1284P env:sanguino1284p_optimized env:sanguino1284p env:sanguino644p env:melzi_optimized_extra_flags
374+
#include "sanguino/pins_MELZI_V2.h" // ATmega644P, ATmega1284P env:sanguino1284p_optimized env:sanguino1284p env:sanguino644p env:melzi_optiboot_optimized_extra_flags
375375
#elif MB(MELZI_MAKR3D)
376376
#include "sanguino/pins_MELZI_MAKR3D.h" // ATmega644P, ATmega1284P env:sanguino1284p_optimized env:sanguino1284p env:sanguino644p
377377
#elif MB(MELZI_CREALITY)

ini/avr.ini

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ board_upload.maximum_size = 130048
141141
extends = env:melzi_optiboot
142142
build_flags = ${tuned_1284p.build_flags}
143143

144-
[env:melzi_optimized_extra_flags]
144+
[env:melzi_optiboot_optimized_extra_flags]
145145
extends = env:melzi_optiboot
146146
build_flags = ${tuned_1284p.build_flags} -finline-limit=3 -ffast-math
147147
build_unflags = -g -ggdb

0 commit comments

Comments
 (0)