Skip to content

Commit

Permalink
Delay in Strava Upload and Treadmill Pace Coloring Off #2933
Browse files Browse the repository at this point in the history
  • Loading branch information
cagnulein committed Jan 7, 2025
1 parent 33a5a2c commit 3b012bc
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions src/devices/treadmill.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -596,12 +596,11 @@ metric treadmill::lastRequestedPower() { return RequestedPower; }

QTime treadmill::speedToPace(double Speed) {
QSettings settings;
// bool miles = settings.value(QZSettings::miles_unit, QZSettings::default_miles_unit).toBool();
const double unit_conversion = 1.0;
// rowers are always in meters!
/*if (miles) {
bool miles = settings.value(QZSettings::miles_unit, QZSettings::default_miles_unit).toBool();
double unit_conversion = 1.0;
if (miles) {
unit_conversion = 0.621371;
}*/
}
if (Speed == 0) {
return QTime(0, 0, 0, 0);
} else {
Expand Down

0 comments on commit 3b012bc

Please sign in to comment.