From adecf522e3797369e3353fbfcce6c403a0efdf84 Mon Sep 17 00:00:00 2001 From: Chris Schlaeger Date: Mon, 31 Aug 2020 14:45:36 +0200 Subject: Fix: Be less strict with check of device_info section --- lib/postrunner/FitFileStore.rb | 4 +--- 1 file changed, 1 insertion(+), 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, -- cgit v1.2.3