From bcff96697689e9d7c254ac00c50a831260810909 Mon Sep 17 00:00:00 2001 From: Roberto Viola Date: Fri, 29 Dec 2023 11:53:03 +0100 Subject: [PATCH] no resistance domyos 520 elliptical block 1 (Issue #1925) --- src/trainprogram.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/trainprogram.cpp b/src/trainprogram.cpp index 2a76ae397..e213e25ea 100644 --- a/src/trainprogram.cpp +++ b/src/trainprogram.cpp @@ -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) @@ -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