Skip to content

Commit 96acc90

Browse files
authored
Fix iOS build error in waterrowerusb: virtualbike_ios() returns void (#4833)
Chaining ->setCadence()/->setHeartRate() off virtualbike_ios() failed to compile since the method returns void. Use virtualbike_setCadence() and virtualbike_setHeartRate() instead, matching other rower devices.
1 parent 3c77f3c commit 96acc90

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

src/devices/waterrowerusb/waterrowerusb.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -304,8 +304,8 @@ void waterrowerusb::update() {
304304
bool ios_peloton_workaround =
305305
settings.value(QZSettings::ios_peloton_workaround, QZSettings::default_ios_peloton_workaround).toBool();
306306
if (ios_peloton_workaround && cadence && h && firstStateChanged) {
307-
h->virtualbike_ios()->setCadence(currentCrankRevolutions(), lastCrankEventTime());
308-
h->virtualbike_ios()->setHeartRate((uint8_t)currentHeart().value());
307+
h->virtualbike_setCadence(currentCrankRevolutions(), lastCrankEventTime());
308+
h->virtualbike_setHeartRate((uint8_t)currentHeart().value());
309309
}
310310
#endif
311311
#endif
@@ -329,7 +329,7 @@ void waterrowerusb::update() {
329329
#ifdef Q_OS_IOS
330330
#ifndef IO_UNDER_QT
331331
if (h) {
332-
h->virtualbike_ios()->setHeartRate((uint8_t)currentHeart().value());
332+
h->virtualbike_setHeartRate((uint8_t)currentHeart().value());
333333
}
334334
#endif
335335
#endif

0 commit comments

Comments
 (0)