Enable withings weight for Watts per Kilogram metric

This commit is contained in:
Damien
2012-11-14 22:12:35 +01:00
parent 7196ce9038
commit 5cc87f9cd8

View File

@@ -34,13 +34,12 @@ getWeight(const MainWindow *main, const RideFile *ride)
if ((weight = ride->getTag("Weight", "0.0").toDouble()) > 0) {
return weight;
}
#if 0
// withings?
QList<SummaryMetrics> measures = main->metricDB->getAllMeasuresFor(QDateTime::fromString("Jan 1 00:00:00 1900"), ride->startTime());
if (measures.count()) {
return measures.last().getText("Weight", "0.0").toDouble();
}
#endif
// global options
return appsettings->cvalue(main->cyclist, GC_WEIGHT, "75.0").toString().toDouble(); // default to 75kg