symbol for new 3.3V LDO
[hw/altusmetrum] / scheme / gnet-bomAM.scm
index 8411196fa08eb8f4b1223135650b295a14907267..487a7a644df98f3696f00797cf4f129bd67994ef 100644 (file)
@@ -31,7 +31,9 @@
 
 (use-modules (ice-9 rdelim)
              (netlist backend-getopt)
+            (netlist error)
              (netlist schematic)
+             (netlist schematic toplevel)
              (srfi srfi-26))
 
 (define bomAM:open-input-file
@@ -59,7 +61,7 @@ filename)
            (begin
              (bomAM:printlist (append attriblist (list "quantity" "refdes")) #\,)
              (newline)
-             (bomAM:printbom (bomAM:components (schematic-package-names toplevel-schematic)
+             (bomAM:printbom (bomAM:components (schematic-package-names (toplevel-schematic))
                                              attriblist)
                             0))))))