Skip to content

Commit

Permalink
restoring correct fitness machine feature bytearray on virtualbike
Browse files Browse the repository at this point in the history
Signed-off-by: Roberto Viola <[email protected]>
  • Loading branch information
cagnulein authored and Roberto Viola committed Dec 4, 2020
1 parent b4c4b19 commit 2e94a16
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/virtualbike.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,12 @@ virtualbike::virtualbike(bike* t, bool noWriteResistance, bool noHeartService, u
QByteArray valueFIT;
valueFIT.append((char)0x80); // resistance level supported
valueFIT.append((char)0x14); // heart rate and elapsed time
valueFIT.append((char)0x00);
valueFIT.append((char)0x00);
valueFIT.append((char)0x00);
valueFIT.append((char)0x00);
valueFIT.append((char)0x00);
valueFIT.append((char)0x00);
charDataFIT.setValue(valueFIT);
charDataFIT.setProperties(QLowEnergyCharacteristic::Read);

Expand Down

0 comments on commit 2e94a16

Please sign in to comment.