I was able to add additional Preheat settings to the Marlin bugfix-2.0.x branch.
By default PLA and ABS are already defined.
I have added HIPS, PP, PET, FLEX and NYLON definitions.
The fork can be found here: Marlin bugfix-2.0.x fork
So what I am attempting to do now is get the menu setup in such a way that if a "PREHEAT_#_LABEL" is not defined,
skip it in the menu and add the next defined preheat setting.
What I am aiming for is much like the "CUSTOM_USER_MENUS" does but integrated into the Temperature sub menu like PLA and ABS is currently.
I know I should be using #ifdef to accomplish this but I can't seem to get it to work if one of the predefined labels is missing.
To see the changes I have made, look HERE.
By default PLA and ABS are already defined.
I have added HIPS, PP, PET, FLEX and NYLON definitions.
The fork can be found here: Marlin bugfix-2.0.x fork
So what I am attempting to do now is get the menu setup in such a way that if a "PREHEAT_#_LABEL" is not defined,
skip it in the menu and add the next defined preheat setting.
What I am aiming for is much like the "CUSTOM_USER_MENUS" does but integrated into the Temperature sub menu like PLA and ABS is currently.
I know I should be using #ifdef to accomplish this but I can't seem to get it to work if one of the predefined labels is missing.
To see the changes I have made, look HERE.