Skip to content

Commit

Permalink
fixing build
Browse files Browse the repository at this point in the history
  • Loading branch information
cagnulein committed Jan 12, 2025
1 parent 253e2b7 commit 73c0725
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
3 changes: 1 addition & 2 deletions src/devices/ftmsbike/ftmsbike.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -289,6 +289,7 @@ void ftmsbike::update() {
}

auto virtualBike = this->VirtualBike();
QSettings settings;
bool gears_zwift_ratio = settings.value(QZSettings::gears_zwift_ratio, QZSettings::default_gears_zwift_ratio).toBool();

if (requestResistance != -1 || lastGearValue != gears()) {
Expand Down Expand Up @@ -324,8 +325,6 @@ void ftmsbike::update() {
}
}

QSettings settings;
bool gears_zwift_ratio = settings.value(QZSettings::gears_zwift_ratio, QZSettings::default_gears_zwift_ratio).toBool();
if(zwiftPlayService && gears_zwift_ratio && lastGearValue != gears()) {
QSettings settings;
wheelCircumference::GearTable table;
Expand Down
1 change: 1 addition & 0 deletions src/devices/ftmsbike/ftmsbike.h
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,7 @@ class ftmsbike : public bike {
bool wait_for_response = false);
void zwiftPlayInit();
void startDiscover();
void setWheelDiameter(double diameter);
uint16_t watts() override;
void init();
void forceResistance(resistance_t requestResistance);
Expand Down

0 comments on commit 73c0725

Please sign in to comment.