mirror of
https://github.com/BelfrySCAD/BOSL2.git
synced 2024-12-29 16:29:40 +00:00
fix echo_struct references
This commit is contained in:
parent
f415e221a2
commit
d1e3e08c67
1 changed files with 2 additions and 2 deletions
|
@ -968,7 +968,7 @@ module screw(name, head, thread="coarse", drive, drive_size, oversize=0, spec, l
|
|||
{
|
||||
spec = _validate_screw_spec(
|
||||
is_def(spec) ? spec : screw_info(name, head, thread, drive, drive_size, oversize) );
|
||||
struct_echo(spec,"spec");
|
||||
echo_struct(spec,"spec");
|
||||
head = struct_val(spec,"head");
|
||||
pitch = struct_val(spec, "pitch");
|
||||
diameter = struct_val(spec, "diameter");
|
||||
|
@ -1324,7 +1324,7 @@ module nut(name, diameter, thickness, thread="coarse", oversize=0, spec, toleran
|
|||
function _is_positive(x) = is_num(x) && x>0;
|
||||
|
||||
function _validate_screw_spec(spec) = let(
|
||||
f=struct_echo(spec),
|
||||
f=echo_struct(spec),
|
||||
systemOK = in_list(struct_val(spec,"system"), ["UTS","ISO"]),
|
||||
diamOK = _is_positive(struct_val(spec, "diameter")),
|
||||
pitch = struct_val(spec,"pitch"),
|
||||
|
|
Loading…
Reference in a new issue