Don't show the bed temp if there is no heated bed.
Don't write bed temp to gcode if there is no heated bed. Read bed temp through accessor function so we can filter it based on if the printer has a heated bed. Added BedTemperature function on Active Slice Settings
This commit is contained in:
parent
a14002c176
commit
cbbeeac8ae
5 changed files with 24 additions and 8 deletions
|
|
@ -137,7 +137,7 @@ namespace MatterHackers.MatterControl.SlicerConfiguration
|
|||
preStartGCode.Add("; automatic settings before start_gcode");
|
||||
AddDefaultIfNotPresent(preStartGCode, "G21", preStartGCodeLines, "set units to millimeters");
|
||||
AddDefaultIfNotPresent(preStartGCode, "M107", preStartGCodeLines, "fan off");
|
||||
double bed_temperature = MapItem.GetValueForKey("bed_temperature");
|
||||
double bed_temperature = ActiveSliceSettings.Instance.BedTemperature;
|
||||
if (bed_temperature > 0)
|
||||
{
|
||||
string setBedTempString = string.Format("M190 S{0}", bed_temperature);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue