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
|
|
@ -108,9 +108,9 @@ namespace MatterHackers.MatterControl.ActionBar
|
|||
string waitingForBedToHeatTitle = "Waiting For Bed To Heat".Localize();
|
||||
protected override void SetTargetTemperature()
|
||||
{
|
||||
double targetTemp;
|
||||
if (double.TryParse(ActiveSliceSettings.Instance.GetActiveValue("bed_temperature"), out targetTemp))
|
||||
{
|
||||
double targetTemp = ActiveSliceSettings.Instance.BedTemperature;
|
||||
if (targetTemp != 0)
|
||||
{
|
||||
double goalTemp = (int)(targetTemp + .5);
|
||||
if (PrinterConnectionAndCommunication.Instance.PrinterIsPrinting
|
||||
&& PrinterConnectionAndCommunication.Instance.PrintingState == PrinterConnectionAndCommunication.DetailedPrintingState.HeatingBed
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue