honor "Use CP for FTP" in TSS

This commit is contained in:
grauser
2015-11-17 07:38:44 +01:00
parent 3111ede203
commit fb717eefce

View File

@@ -215,7 +215,7 @@ class TSS : public RideMetric {
int ftp = r->getTag("FTP","0").toInt();
bool useCPForFTP = (appsettings->cvalue(context->athlete->cyclist, GC_USE_CP_FOR_FTP, "1").toString() == "0");
bool useCPForFTP = (appsettings->cvalue(context->athlete->cyclist, GC_USE_CP_FOR_FTP, true).toBool());
if (useCPForFTP) {
int cp = r->getTag("CP","0").toInt();