Skip to content

Commit

Permalink
fixed energy adjustment
Browse files Browse the repository at this point in the history
  • Loading branch information
svenmeier committed Jun 1, 2021
1 parent 2fe1546 commit 38fc6ef
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,6 @@ public class EnergyAdjuster extends Adjuster {

private int weight;

private Measurement measurement;

/**
* Calculate with {@link #DEFAULT_WEIGHT}, i.e. don't adjust.
*/
Expand All @@ -61,7 +59,7 @@ public EnergyAdjuster(Measurement measurement, int weight) {

@Override
public void setEnergy(int energy) {
if (measurement.getDistance() == 0) {
if (getDistance() == 0) {
// leave unadjusted
super.setEnergy(energy);
} else {
Expand Down
5 changes: 4 additions & 1 deletion changelog
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
8.5
8.7
- fixed energy adjustment

8.6
- show results after workout end
- possible fix for export to Google Fit
- speak seconds
Expand Down
4 changes: 2 additions & 2 deletions gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@
# org.gradle.parallel=true

# ./gradlew githubRelease
coxswain-versionCode=86
coxswain-versionName=8.6
coxswain-versionCode=87
coxswain-versionName=8.7

coxswain-private=/home/sven/Documents/coxswain/coxswain-private.gradle

Expand Down

0 comments on commit 38fc6ef

Please sign in to comment.