From bccfe2402434b60dec4ff799db1a301963610231 Mon Sep 17 00:00:00 2001 From: Vianney Boyer Date: Thu, 3 Dec 2015 00:29:18 +0100 Subject: [PATCH] FIT file data 9 : device settings messages --- src/FitRideFile.cpp | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/src/FitRideFile.cpp b/src/FitRideFile.cpp index 90fe40282..11be6482e 100644 --- a/src/FitRideFile.cpp +++ b/src/FitRideFile.cpp @@ -1268,6 +1268,30 @@ struct FitFileReaderState } } + void decodeDeviceSettings(const FitDefinition &def, int time_offset, const std::vector values) { + Q_UNUSED(time_offset); + int i = 0; + foreach(const FitField &field, def.fields) { + fit_value_t value = values[i++].v; + + if( value == NA_VALUE ) + continue; + + switch (field.num) { + case 0: // Active timezone + // ignored + break; + case 1: // UTC offset + // ignored + break; + case 5: // timezone offset + // ignored + break; + default: ; // ignore it + } + } + } + int read_record(bool &stop, QStringList &errors) { stop = false; int count = 0;