Skip to content

Save some PROGMEM with constexpr#11798

Merged
thinkyhead merged 1 commit intoMarlinFirmware:bugfix-2.0.xfrom
thinkyhead:bf2_misc_fixes_sep4
Sep 11, 2018
Merged

Save some PROGMEM with constexpr#11798
thinkyhead merged 1 commit intoMarlinFirmware:bugfix-2.0.xfrom
thinkyhead:bf2_misc_fixes_sep4

Conversation

@thinkyhead
Copy link
Member

@thinkyhead thinkyhead commented Sep 11, 2018

When possible, make active_extruder a constexpr to save some PROGMEM. For a single extruder system with default config this saves about 164 bytes of program memory (and 18 bytes of SRAM!).

When possible, make `active_extruder` a `constexpr` to save some PROGMEM.
@thinkyhead thinkyhead merged commit d882717 into MarlinFirmware:bugfix-2.0.x Sep 11, 2018
@thinkyhead thinkyhead deleted the bf2_misc_fixes_sep4 branch September 11, 2018 04:09
@fiveangle
Copy link

Booyah ! 🍾

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants