From 2f1194b0bd7a936cb4f83aa5dcb10dbcf3778491 Mon Sep 17 00:00:00 2001 From: Alejandro Martinez Date: Tue, 1 Feb 2022 20:35:10 -0300 Subject: [PATCH] Decode Stress extra field from FIT files Fixes #4153 --- src/FileIO/FitRideFile.cpp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/FileIO/FitRideFile.cpp b/src/FileIO/FitRideFile.cpp index 440b141d4..d0186e3eb 100644 --- a/src/FileIO/FitRideFile.cpp +++ b/src/FileIO/FitRideFile.cpp @@ -775,6 +775,9 @@ struct FitFileReaderState case 115: // MTB Dynamics - Flow return "FLOW"; + case 116: // Stress + return "STRESS"; + default: return QString("FIELD_%1").arg(native_num); } @@ -798,6 +801,7 @@ struct FitFileReaderState return 2.0; case 108: // RESPIRATIONRATE + case 116: // Stress return 100.0; default: @@ -2056,6 +2060,9 @@ struct FitFileReaderState case 115: // MTB Dynamics - Flow native_num = -1; break; + case 116: // Stress + native_num = -1; + break; default: unknown_record_fields.insert(native_num); native_num = -1;