From 132e8cd1968c0258dc2a00a8c703c792f2beb6ea Mon Sep 17 00:00:00 2001 From: Alejandro Martinez Date: Thu, 18 Jun 2015 20:15:32 -0300 Subject: [PATCH] Added error message for unsupported Lap Swimming FIT files Until proper handling is added better to give an error message, otherwise an activity with no data is created causing confusion. --- src/FitRideFile.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/FitRideFile.cpp b/src/FitRideFile.cpp index 71520b38f..1d5e65276 100644 --- a/src/FitRideFile.cpp +++ b/src/FitRideFile.cpp @@ -960,6 +960,11 @@ struct FitFileReaderState case 23: /*decodeDeviceInfo(def, time_offset, values);*/ break; /* device info */ case 18: decodeSession(def, time_offset, values); break; /* session */ + case 101: /* lap swimming length */ + errors << "Unsupported Lap Swimming FIT File - Use .tcx or .pwx formats"; + stop = true; + break; + case 2: /* DEVICE_SETTINGS */ case 3: /* USER_PROFILE */ case 7: /* ZONES_TARGET12 */