diff --git a/hardware/Rakefile b/hardware/Rakefile index 1072281..0258a46 100644 --- a/hardware/Rakefile +++ b/hardware/Rakefile @@ -158,12 +158,12 @@ def bom2(schematic, attributes) csv = CSV.parse(list,:col_sep => ":") csv[1..-1].each do |row| line = {} - line.each_index do |col| + row.each_index do |col| line[csv[0][col]] = row[col] unless row[col]=="unknown" end to_return << line end - return csv + return to_return end # ===============