Skip to content

Commit

Permalink
fixing auto resistance for ifit
Browse files Browse the repository at this point in the history
iFit Virtual Device Implementation #441
  • Loading branch information
cagnulein committed Jun 19, 2022
1 parent 71dc987 commit 4d22e6f
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/virtualbike.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -464,12 +464,12 @@ void virtualbike::characteristicChanged(const QLowEnergyCharacteristic &characte
// double erg_filter_lower = settings.value(QStringLiteral("zwift_erg_filter_down"), 0.0)
// .toDouble(); // NOTE:clang-analyzer-deadcode.DeadStores
qDebug() << QStringLiteral("characteristicChanged ") + QString::number(characteristic.uuid().toUInt16()) +
QStringLiteral(" ") + newValue.toHex(' ');
QStringLiteral(" ") + newValue.toHex(' ');

lastFTMSFrameReceived = QDateTime::currentMSecsSinceEpoch();

if (!echelon && !ifit)
if (!echelon && !ifit) {
lastFTMSFrameReceived = QDateTime::currentMSecsSinceEpoch();
emit ftmsCharacteristicChanged(characteristic, newValue);
}

switch (characteristic.uuid().toUInt16()) {

Expand Down

0 comments on commit 4d22e6f

Please sign in to comment.