Welcome to mirror list, hosted at ThFree Co, Russian Federation.

layer-detect2.gcode « testfiles - github.com/kliment/Printrun.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 7fa3f56758f63de0252941a0a414d7bad557d492 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
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')