Skip to content

Commit

Permalink
Update trainprogram.cpp
Browse files Browse the repository at this point in the history
  • Loading branch information
cagnulein authored Dec 29, 2023
1 parent bcff966 commit 82ef4e4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/trainprogram.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -765,7 +765,7 @@ void trainprogram::scheduler() {
}

if (rows.at(0).inclination != -200 && (bluetoothManager->device()->deviceType() == bluetoothdevice::BIKE ||
(bluetoothManager->device()->deviceType() == bluetoothdevice::ELLIPTICAL && !((elliptical*)bluetoothManager->device())->inclinationAvailableByHardware))) {
(bluetoothManager->device()->deviceType() == bluetoothdevice::ELLIPTICAL && !((elliptical*)bluetoothManager->device())->inclinationAvailableByHardware()))) {
// this should be converted in a signal as all the other signals...
double bikeResistanceOffset =
settings.value(QZSettings::bike_resistance_offset, QZSettings::default_bike_resistance_offset)
Expand Down Expand Up @@ -918,7 +918,7 @@ void trainprogram::scheduler() {

if (rows.at(currentStep).inclination != -200 &&
(bluetoothManager->device()->deviceType() == bluetoothdevice::BIKE ||
(bluetoothManager->device()->deviceType() == bluetoothdevice::ELLIPTICAL && !((elliptical*)bluetoothManager->device())->inclinationAvailableByHardware))) {
(bluetoothManager->device()->deviceType() == bluetoothdevice::ELLIPTICAL && !((elliptical*)bluetoothManager->device())->inclinationAvailableByHardware()))) {
// this should be converted in a signal as all the other signals...
double bikeResistanceOffset =
settings
Expand Down

0 comments on commit 82ef4e4

Please sign in to comment.