summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Schlaeger <chris@linux.com>2016-04-17 12:45:30 +0200
committerChris Schlaeger <chris@linux.com>2016-04-17 12:45:30 +0200
commit37bd47d28f87a766afd9c8ff1092738b4803138b (patch)
treeb99f300e9fcc6eddf123617ba595bace7901ed2c
parenta635795acdd30a5ef5b7cf7ba01e08cd31c43109 (diff)
downloadpostrunner-37bd47d28f87a766afd9c8ff1092738b4803138b.zip
New: Show EPO data lifespan in device section of GPS devices.
-rw-r--r--lib/postrunner/DeviceList.rb9
1 files changed, 9 insertions, 0 deletions
diff --git a/lib/postrunner/DeviceList.rb b/lib/postrunner/DeviceList.rb
index ced0eab..b056ae0 100644
--- a/lib/postrunner/DeviceList.rb
+++ b/lib/postrunner/DeviceList.rb
@@ -104,6 +104,15 @@ module PostRunner
t.new_row
end
+ if type == 'GPS' && (epo = @fit_activity.epo_data) && epo.valid == 1
+ t.cell('EPO Data Start:')
+ t.cell(epo.interval_start)
+ t.new_row
+ t.cell('EPO Data End:')
+ t.cell(epo.interval_end)
+ t.new_row
+ end
+
if device.serial_number
t.cell('Serial Number:')
t.cell(device.serial_number)