Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
cagnulein committed Dec 27, 2024
2 parents fbe03d2 + 361280c commit d176779
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,9 @@ Zwift bridge for Treadmills and Bike!
|:---|:---:|:---:|:---:|:---:|---:|
|Resistance shifting with bluetooth remote|X||X|||
|TTS support|X|X|X|X||
|Zwift Play & Click support|X|||||
|MQTT integration|X|X|X|X||
|OpenSoundControl integration|X|X|X|X||


### Installation
Expand Down
2 changes: 1 addition & 1 deletion src/devices/ftmsbike/ftmsbike.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -429,7 +429,7 @@ void ftmsbike::characteristicChanged(const QLowEnergyCharacteristic &characteris
}

// Wattbike Atom First Generation - Display Gears
if(characteristic.uuid() == QBluetoothUuid(QStringLiteral("b4cc1224-bc02-4cae-adb9-1217ad2860d1")) &&
if(WATTBIKE && characteristic.uuid() == QBluetoothUuid(QStringLiteral("b4cc1224-bc02-4cae-adb9-1217ad2860d1")) &&
newValue.length() > 3 && newValue.at(1) == 0x03 && (uint8_t)newValue.at(2) == 0xb6) {
uint8_t gear = newValue.at(3);
qDebug() << "watt bike gears" << gear;
Expand Down

0 comments on commit d176779

Please sign in to comment.