Skip to content

fix: Always perform at least one step of milling.#678

Merged
eyal0 merged 2 commits intopcb2gcode:masterfrom
eyal0:at_least_one_step
Aug 21, 2023
Merged

fix: Always perform at least one step of milling.#678
eyal0 merged 2 commits intopcb2gcode:masterfrom
eyal0:at_least_one_step

Conversation

@eyal0
Copy link
Contributor

@eyal0 eyal0 commented Aug 21, 2023

This fixes #677

eyal0 added 2 commits August 21, 2023 08:50
Laser cutters might need to set zwork to 0 or stepsize to 0, which
caused the code to compute that no milling/cutting needs to be done at
all!  It seems unlikely that someone would not want to do any work at
all so we'll make sure that there is always at least one pass.
@eyal0 eyal0 enabled auto-merge August 21, 2023 15:27
@eyal0 eyal0 merged commit 96a34a4 into pcb2gcode:master Aug 21, 2023
@coveralls
Copy link
Collaborator

Coverage Status

coverage: 73.984% (+0.2%) from 73.798% when pulling 2c88575 on eyal0:at_least_one_step into f132a47 on pcb2gcode:master.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

When zsafe and zwork are both zero, the gcode file does not match the silkscreen. The output is correct if I change both to another value, say 0.1.

2 participants