Add support for specifying the firmware type in the profile

This commit is contained in:
LarsBrubaker 2020-04-11 09:42:07 -07:00
parent 87f03798a3
commit b19e0a7629
8 changed files with 48 additions and 11 deletions

View file

@ -175,6 +175,7 @@ namespace MatterHackers.MatterControl.SlicerConfiguration
SettingsKey.filament_has_been_loaded,
SettingsKey.filament_1_has_been_loaded,
SettingsKey.filament_runout_sensor,
SettingsKey.firmware_type,
SettingsKey.has_fan,
SettingsKey.has_hardware_leveling,
SettingsKey.has_heated_bed,

View file

@ -100,6 +100,7 @@ namespace MatterHackers.MatterControl.SlicerConfiguration
public const string fill_density = nameof(fill_density);
public const string fill_pattern = nameof(fill_pattern);
public const string fill_thin_gaps = nameof(fill_thin_gaps);
public const string firmware_type = nameof(firmware_type);
public const string first_layer_bed_temperature = nameof(first_layer_bed_temperature);
public const string first_layer_extrusion_width = nameof(first_layer_extrusion_width);
public const string first_layer_height = nameof(first_layer_height);

View file

@ -874,6 +874,17 @@ namespace MatterHackers.MatterControl.SlicerConfiguration
Converter = new ValueConverter(),
},
new SliceSettingData()
{
SlicerConfigName = SettingsKey.firmware_type,
PresentationName = "Firmware Type".Localize(),
HelpText = "The firmware being used by the printer. Allows for improvements based on firmware such as optimized G-Code output.".Localize(),
DataEditType = DataEditTypes.LIST,
ShowIfSet = "!sla_printer",
ListValues = "Unknown,Marlin,Smoothie",
DefaultValue = "Unknown",
Converter = new ValueConverter(),
},
new SliceSettingData()
{
SlicerConfigName = SettingsKey.print_leveling_solution,
PresentationName = "Leveling Solution".Localize(),