From 59214ca34556bb4a7bae04ca43d79ab1a8cea753 Mon Sep 17 00:00:00 2001 From: Kevin Redon Date: Wed, 2 Apr 2014 17:14:05 +0200 Subject: [PATCH] fix bom2 --- hardware/Rakefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 # ===============