CSVRideFile: Read iBike device type and version

This commit is contained in:
grauser
2016-01-14 23:15:16 +01:00
parent 03344fed59
commit 378681f84f

View File

@@ -334,6 +334,8 @@ RideFile *CsvFileReader::openRideFile(QFile &file, QStringList &errors, QList<Ri
// the trailing zeroes in the configuration area seem to be causing an error
// the number is in the format 5.000000
recInterval = (int)line.section(',',4,4).toDouble();
rideFile->setDeviceType(line.section(',',26,26));
rideFile->setTag("Device Info", line.section(',',20,21).remove(QChar('"')));
}
}