Skip to content

Commit

Permalink
Map two new Polar sport types
Browse files Browse the repository at this point in the history
Specifcally,
* 111 - Mobility (dynamic)
* 127 - Mobility (static)

Both from https://flow.polar.com/settings/profile
  • Loading branch information
pcolby committed Aug 22, 2016
1 parent 00b775d commit a5f67bd
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/polar/v2/trainingsession.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -226,7 +226,7 @@ QString TrainingSession::getTcxSport(const quint64 &polarSportValue)
map.insert(108, TCX_OTHER); // Water skiing
map.insert(109, TCX_OTHER); // Boxing
map.insert(110, TCX_OTHER); // Kickboxing
//map.insert(111, TCX
map.insert(111, TCX_OTHER); // Mobility (dynamic)
map.insert(112, TCX_OTHER); // Telemark skiing
map.insert(113, TCX_OTHER); // Backcountry skiing
map.insert(114, TCX_OTHER); // Gymnastics
Expand All @@ -242,6 +242,7 @@ QString TrainingSession::getTcxSport(const quint64 &polarSportValue)
map.insert(124, TCX_OTHER); // Modern
map.insert(125, TCX_OTHER); // Ballroom
map.insert(126, TCX_OTHER); // Core
map.insert(127, TCX_OTHER); // Mobility (static)
}
QMap<quint64, QString>::ConstIterator iter = map.constFind(polarSportValue);
if (iter == map.constEnd()) {
Expand Down

0 comments on commit a5f67bd

Please sign in to comment.