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();