Skip to content

Commit

Permalink
fix(spkb.single_key_pcb): correct vertical offset when extra_spacing …
Browse files Browse the repository at this point in the history
…is set
  • Loading branch information
whitelynx committed Dec 16, 2024
1 parent e3686db commit 56a7b87
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion spkb/single_key_pcb.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ def single_key_board(simple: bool = False, extra_spacing: float = 0) -> OpenSCAD
- pcb_hole.right(pcb_hole_offset).back(pcb_hole_offset)
)

return pcb.down(pcb_thickness / 2 + keyswitch_depth + extra_spacing)
return pcb.down(pcb_thickness / 2 + keyswitch_depth + extra_spacing / 2)


# To test, use the command line: pipenv run python -m spkb.single_key_pcb
Expand Down

0 comments on commit 56a7b87

Please sign in to comment.