Skip to content

Commit

Permalink
no resistance domyos 520 elliptical block 1 (Issue #1925)
Browse files Browse the repository at this point in the history
  • Loading branch information
cagnulein committed Dec 29, 2023
1 parent 0931ef6 commit bcff966
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 && !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 && !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 bcff966

Please sign in to comment.