Skip to content

Commit

Permalink
fs5i nordick track more realistic ride when running with Rouvy or Zwift
Browse files Browse the repository at this point in the history
  • Loading branch information
cagnulein committed Nov 8, 2023
1 parent 16611c7 commit 1e639ca
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/proformelliptical.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -212,8 +212,7 @@ void proformelliptical::characteristicChanged(const QLowEnergyCharacteristic &ch

lastPacket = newValue;

if (newValue.length() == 20 && newValue.at(0) == 0x01 && newValue.at(1) == 0x12 &&
((newValue.at(2) == 0x46) || (newValue.at(2) == 0x5a))) {
if (newValue.length() == 20 && newValue.at(0) == 0x01 && newValue.at(1) == 0x12 && newValue.at(4) != 0xFF) {
double speed_from_machinery =
(double)(((uint16_t)((uint8_t)newValue.at(15)) << 8) + (uint16_t)((uint8_t)newValue.at(14))) / 100.0;
if (!settings.value(QZSettings::speed_power_based, QZSettings::default_speed_power_based).toBool()) {
Expand Down

0 comments on commit 1e639ca

Please sign in to comment.