mirror of
https://github.com/GoldenCheetah/GoldenCheetah.git
synced 2026-02-14 00:28:42 +00:00
honor "Use CP for FTP" in TSS
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user