lib/fit4ruby/FitFile.rb in fit4ruby-2.0.0 vs lib/fit4ruby/FitFile.rb in fit4ruby-3.0.0

- old
+ new

@@ -53,10 +53,10 @@ records = [] # This hash will hold a counter for each record type. The counter is # incremented each time the corresponding record type is found. record_counters = Hash.new { 0 } while io.pos < offset + header.end_pos - record = FitRecord.new(definitions) + record = FitRecord.new(definitions, entity) record.read(io, entity, filter, record_counters) records << record if filter end # Skip the 2 CRC bytes io.seek(2, :CUR)