diff --git a/readme.md b/readme.md index 51ec0c1..e62a146 100644 --- a/readme.md +++ b/readme.md @@ -2601,7 +2601,7 @@ SK shaft support brackets | 1 | ```sk_bracket(SK12)``` | SK12 shaft support bracket | | 1 | ```sk_bracket(SK16)``` | SK16 shaft support bracket | | 1 | ```sk_bracket(SK8)``` | SK8 shaft support bracket | -| 2 | ```screw(M4_cap_screw, 16)``` | Screw M4 cap x 16mm | +| 2 | ```screw(M4_cap_screw, 12)``` | Screw M4 cap x 12mm | | 6 | ```screw(M5_cap_screw, 16)``` | Screw M5 cap x 16mm | | 2 | ```washer(M4_washer)``` | Washer M4 x 9mm x 0.8mm | | 10 | ```washer(M5_washer)``` | Washer M5 x 10mm x 1mm | diff --git a/tests/png/sk_brackets.png b/tests/png/sk_brackets.png index e60bac7..015d1c9 100644 Binary files a/tests/png/sk_brackets.png and b/tests/png/sk_brackets.png differ diff --git a/vitamins/sk_bracket.scad b/vitamins/sk_bracket.scad index 03c3353..853cb3e 100644 --- a/vitamins/sk_bracket.scad +++ b/vitamins/sk_bracket.scad @@ -110,7 +110,8 @@ module sk_bracket_assembly(type, part_thickness = 2, screw_type = M5_cap_screw, nut_washer_thickness = nut_washer_type ? washer_thickness(nut_washer_type) : 0; nut_offset = sk_base_height(type) + part_thickness; - screw_length = screw_longer_than(nut_offset + screw_washer_thickness + nut_washer_thickness + nut_thickness(nut_type)); + screw_length = nut_washer_type ? screw_longer_than(nut_offset + screw_washer_thickness + nut_washer_thickness + nut_thickness(nut_type)) + : screw_shorter_than(nut_offset + screw_washer_thickness + nut_thickness(nut_type) + 2); sk_bracket_hole_positions(type) { screw_and_washer(screw_type, screw_length);