Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions lib/fit4ruby/Session.rb
Original file line number Diff line number Diff line change
Expand Up @@ -60,10 +60,10 @@ def check(activity)
Log.fatal 'num_laps is not set'
end
@first_lap_index.upto(@first_lap_index - @num_laps) do |i|
if (lap = activity.lap[i])
if (lap = activity.laps[i])
@laps << lap
else
Log.fatal "Session references lap #{i} which is not contained in "
Log.fatal "Session references lap #{i} which is not contained in " \
"the FIT file."
end
end
Expand Down