From fb717eefced62411f3bc41f97d6ee2271d89088a Mon Sep 17 00:00:00 2001 From: grauser Date: Tue, 17 Nov 2015 07:38:44 +0100 Subject: [PATCH] honor "Use CP for FTP" in TSS --- src/Coggan.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Coggan.cpp b/src/Coggan.cpp index bd8168e8a..ac53cfc9b 100644 --- a/src/Coggan.cpp +++ b/src/Coggan.cpp @@ -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();