-
Notifications
You must be signed in to change notification settings - Fork 992
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1158 from volconst/layer-counts
Refine layer counting
- Loading branch information
Showing
2 changed files
with
20 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
; Print this file to see the parsed layers | ||
; This file tests problem reported in | ||
; https://github.com/kliment/Printrun/pull/1069#issuecomment-770091308 | ||
|
||
G28 | ||
G0 Z15 | ||
G1 E6 ; should not count as x,y not moved | ||
|
||
G0 X10 Y10 Z0.2 | ||
G1 X20 E7 | ||
|
||
G0 Z10 | ||
M83 ;relative extrusion mode | ||
G1 E-3 ; retract should not create layer | ||
|
||
;@!print([l.z for l in self.fgcode.all_layers]) | ||
;@!print('test ', 'passed' if len(self.fgcode.all_layers) == 1 else 'failed') |