summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Schlaeger <chris@linux.com>2020-08-31 14:45:36 +0200
committerChris Schlaeger <chris@linux.com>2020-08-31 14:45:36 +0200
commitadecf522e3797369e3353fbfcce6c403a0efdf84 (patch)
tree4a3ff7ef3ea1cac3c763000b02b10ca4b0e4afc0
parent0bd09f11c0ad25df14637eaada61f3d9a0237266 (diff)
downloadpostrunner-adecf522e3797369e3353fbfcce6c403a0efdf84.zip
Fix: Be less strict with check of device_info section
-rw-r--r--lib/postrunner/FitFileStore.rb4
1 files changed, 1 insertions, 3 deletions
diff --git a/lib/postrunner/FitFileStore.rb b/lib/postrunner/FitFileStore.rb
index a7d7ebf..f007a73 100644
--- a/lib/postrunner/FitFileStore.rb
+++ b/lib/postrunner/FitFileStore.rb
@@ -508,9 +508,7 @@ module PostRunner
# Not all FIT file have indexed device sections. In case the device
# index is nil we'll take the first entry.
if (di.device_index.nil? || di.device_index == 0) &&
- (di.manufacturer &&
- (di.garmin_product || di.product) &&
- di.numeric_product && di.serial_number)
+ di.numeric_manufacturer && di.numeric_product
return {
:manufacturer => di.manufacturer,
:product => di.garmin_product || di.product,