mirror of
https://github.com/GoldenCheetah/GoldenCheetah.git
synced 2026-02-13 16:18:42 +00:00
Update LeftRightBalance.cpp
Add additional checks in order to differentiate between cycling and running
This commit is contained in:
@@ -60,7 +60,7 @@ class LeftRightBalance : public RideMetric {
|
||||
RideFileIterator it(item->ride(), spec);
|
||||
while (it.hasNext()) {
|
||||
struct RideFilePoint *point = it.next();
|
||||
if (point->watts > 0.0f && (point->cad || point->rcad) && point->lrbalance > 0.0f && point->lrbalance < 100.0f) {
|
||||
if ((point->watts > 0.0f && point->cad) || (point->rcontact && point->rcad) && point->lrbalance > 0.0f && point->lrbalance < 100.0f) {
|
||||
total += point->lrbalance;
|
||||
++count;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user