Reset any time we think we see a g28 etc
This commit is contained in:
parent
d7af3ecf96
commit
fb455b0353
2 changed files with 5 additions and 5 deletions
|
|
@ -2680,10 +2680,10 @@ namespace MatterHackers.MatterControl.PrinterCommunication
|
|||
FoundStringEventArgs foundStringEvent = new FoundStringEventArgs(lineWithoutChecksum);
|
||||
|
||||
// If we get a home command, ask the printer where it is after sending it.
|
||||
if (lineWithoutChecksum.StartsWith("G28") // is a home
|
||||
|| lineWithoutChecksum.StartsWith("G29") // is a bed level
|
||||
|| lineWithoutChecksum.StartsWith("G30") // is a bed level
|
||||
|| lineWithoutChecksum.StartsWith("G92") // is a reset of printer position
|
||||
if (lineWithoutChecksum.Contains("G28") // is a home
|
||||
|| lineWithoutChecksum.Contains("G29") // is a bed level
|
||||
|| lineWithoutChecksum.Contains("G30") // is a bed level
|
||||
|| lineWithoutChecksum.Contains("G92") // is a reset of printer position
|
||||
|| (lineWithoutChecksum.StartsWith("T") && !lineWithoutChecksum.StartsWith("T:"))) // is a switch extruder (verify this is the right time to ask this)
|
||||
{
|
||||
ReadPosition(true);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue