refactoring
This commit is contained in:
parent
debd4e6b93
commit
d77c942e69
3 changed files with 4 additions and 4 deletions
|
|
@ -54,7 +54,7 @@ namespace MatterControl.Printing
|
|||
/// <summary>
|
||||
/// Gets total print time that will leave the heaters on at the conclusion of the print.
|
||||
/// </summary>
|
||||
public static int PrintTimeToLeaveHeatersOn => 60 * 10;
|
||||
public static int LeaveHeatersOnTime => 60 * 10;
|
||||
|
||||
public GCodeMemoryFile(bool gcodeHasExplicitLayerChangeInfo = false)
|
||||
{
|
||||
|
|
@ -446,7 +446,7 @@ namespace MatterControl.Printing
|
|||
{
|
||||
// don't turn of extruders if we will end the print within 10 minutes
|
||||
if (instructionIndex < gCodeCommandQueue.Count
|
||||
&& this.TotalSecondsInPrint < PrintTimeToLeaveHeatersOn)
|
||||
&& this.TotalSecondsInPrint < LeaveHeatersOnTime)
|
||||
{
|
||||
return (toolToLookFor, gCodeCommandQueue[instructionIndex].SecondsToEndFromHere);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -2608,7 +2608,7 @@ You will then need to logout and log back in to the computer for the changes to
|
|||
|
||||
// never leave the extruder and the bed hot
|
||||
ReleaseMotors();
|
||||
if (SecondsPrinted < GCodeMemoryFile.PrintTimeToLeaveHeatersOn)
|
||||
if (SecondsPrinted < GCodeMemoryFile.LeaveHeatersOnTime)
|
||||
{
|
||||
// The user may still be sitting at the machine, leave it heated for a period of time
|
||||
TurnOffBedAndExtruders(TurnOff.AfterDelay);
|
||||
|
|
|
|||
|
|
@ -1 +1 @@
|
|||
Subproject commit 05fb98bf15a5a26daabc6697e916cd9c06d5d076
|
||||
Subproject commit 11e70cd0bd9f4c2c9c608c62838278a0354ec628
|
||||
Loading…
Add table
Add a link
Reference in a new issue