Skip to content

BKool app is reporting heart rate with a 1280 offset #207

Answered by benriou
benriou asked this question in Q&A
Discussion options

You must be logged in to vote

BKOOL is now reporting the correct value after the following change.

I searched with the NRF toolbox suite, but there is no bike detected when the Domyos bridge is started.

I'm ok to submit a pull request, however I don't want to break something on others users.

+++ b/src/virtualbike.cpp
@@ -496,7 +496,9 @@ void virtualbike::bikeProvider()
             value.append((char)(Bike->watts() & 0xFF)); // watts
             value.append((char)(Bike->watts() >> 8) & 0xFF); // watts
 
-            value.append(char(Bike->currentHeart().value())); // Actual value.
+            value.append(char(Bike->currentHeart().value()));
+           value.append((char)0);

Replies: 5 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by cagnulein
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants